ãã©ã¼ã (Form)ã«ããèªè¨¼æ©è½ã追å ããã ã¦ã¼ã¶ã¼ãã¼ãã«ã¯ãåã®è¨äºãåèã«ã AppController.phpã®initializeã¡ã½ããã«èªè¨¼é¢é£ã®ã³ã³ãã¼ãã³ããè¨å®ã public function initialize() { parent::initialize(); $this->loadComponent('Flash'); //èªè¨¼ $this->loadComponent('Auth',[ 'authenticate' => [ 'Form' => [ 'fields' => [ 'username' => 'email', 'password' => 'password' ] ] ], 'loginAction' => [ 'controller' => 'Users', 'action' => 'login' ] ]); } Authã³ã³ãã¼ãã³ãããã¼
{{#tags}}- {{label}}
{{/tags}}