1.X系の感じで使おうと思ったら、結構ハマったのでメモ。 Authコンポーネントは、2.0で大きく変わっていた。 1.ログイン処理部分を自作しなければならないこと CakePHP1.X系ではloginのメソッドを用意しておけば他の処理は不要だったのだが、CakePHP2.0からは自前で用意しなければならないらしい <1.0系の時> public function login() {} <2.0系の時> public function login() { if ($this->request->is('post')) { if ($this->Auth->login()) { return $this->redirect($this->Auth->redirect()); } else { $this->Session->setFlash(__('IDがパスワードが違います。'), 'def
![CakePHP2.0のAuthComponent](https://cdn-ak-scissors.b.st-hatena.com/image/square/b59d2aa80bd863ad85eeae801705420a720e15f1/height=288;version=1;width=512/http%3A%2F%2Flog.miraoto.com%2Fwp-content%2Fuploads%2F2013%2F03%2Fcakephp-logo.png)