$this->Auth->loginAction = array('controller' => 'users', 'action' => 'blogin');
这里我需要在blogin页面上传递一个参数,如何传递它?
答案 0 :(得分:0)
以下是答案
$url = array('controller' => 'users', 'action' => 'blogin'); $this->Auth->loginAction = array_merge($url, $my_params);
在$this->redirect($this->Auth->redirect());
if ($this->Auth->login()) { block