function add() { if(empty($this->data)) { $this->set('login', null); } else { $this->cleanUpFields(); if($this->Login->save($this->data)) { if(is_object($this->Session)) { $this->Session->setFlash('The Login has been saved'); $this->redirect('/login/index'); } else { $this->flash('Login saved.', '/login/index'); } } else { if(is_object($this->Session)) { $this->Session->setFlash('Please correct er
![確認画面を挟む - CakePHPまとめ@Wiki](https://cdn-ak-scissors.b.st-hatena.com/image/square/45c4684c76601e94abbe94966d9d5a26153b8fbd/height=288;version=1;width=512/https%3A%2F%2Fimg.atwiki.jp%2F_img%2Fog_image.png)