Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$this->Auth->loginAction = array('controller' => 'users', 'action' => 'blogin');
这里我需要在博客页面传递一个参数,如何传递呢?
这是答案
$url = array('controller' => 'users', 'action' => 'blogin'); $this->Auth->loginAction = array_merge($url, $my_params);
$this->redirect($this->Auth->redirect());内添加if ($this->Auth->login()) { block
$this->redirect($this->Auth->redirect());
if ($this->Auth->login()) { block