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

这里我需要在博客页面传递一个参数,如何传递呢?

4

1 回答 1

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

于 2013-02-12T05:52:32.603 回答