Here is my code,
class LoginController
{
public function authUser()
{
return "OK";
exit();
}
}
Its redirect to 404. But if I use below code its working, what's wrong in first code.
class LoginController
{
public function authUser()
{
return $this->render('test.html.php', array());
}
}