【发布时间】:2014-02-13 14:44:50
【问题描述】:
我是否正确理解在执行$this->dispatcher->forward() 或$this->response->redirect() 之后我需要手动确保其余代码不会被执行?像下面这样,还是我错过了什么?
public function signinAction()
{
if ($this->isUserAuthenticated())
{
$this->response->redirect('/profile');
return;
}
// Stuff if he isn't authenticated…
}
【问题讨论】:
标签: phalcon