如何在cakephp登录操作中传递参数?

时间:2013-02-12 05:14:24

标签: php cakephp

$this->Auth->loginAction = array('controller' => 'users', 'action' => 'blogin'); 

这里我需要在blogin页面上传递一个参数,如何传递它?

1 个答案:

答案 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