【发布时间】:2019-01-04 08:27:15
【问题描述】:
这是我的代码,
class LoginController
{
public function authUser()
{
return "OK";
exit();
}
}
它重定向到 404。 但是如果我使用下面的代码它的工作,那么第一个代码有什么问题。
class LoginController
{
public function authUser()
{
return $this->render('test.html.php', array());
}
}
【问题讨论】: