0
AuthメソッドでCakePHP 1.3のチュートリアルはすべてではありませんが、ほとんど試しましたが、CakePHP 2.0では動作しないようです。AuthコンポーネントがCakePHP 2.0で動作しない
ユーザーを追加したり、パスワードをハッシュしたりできますが、ログイン機能は動作しません。ログインをクリックするとページが更新されます。エラーも何もない
私はいくつかのヒントをありがとうと私の質問を読んでいただきありがとうございます。
この私のコード パブリック関数のログイン() {
if ($this->request->is('post'))
{
if($this->Auth->login())
{
// the redirect() function in the Auth class redirects us
// to the url we set up in the AppController.
return $this->redirect($this->Auth->redirect());
}
else
{
$this->Session->setFlash(__('Email or password is incorrect',true));
}
}
}
おかげで、 マハデヴァープラサド
http://book.cakephp.org/2.0/en/core-libraries/components/authentication.htmlを参照してください。それが置かれている可能性がありますか? 'は(' put ') 'であるか? – mark