Hi there,
I have the following code:
public function beforeExecuteRoute($dispatcher)
{
if (!$this->session->has('user')) {
if ($dispatcher->getControllerName() == 'login' &&
($dispatcher->getActionName() == 'new' || $dispatcher->getActionName() == 'create')
) {
return;
}
$this->response->redirect('login/new');
}
}
When I call
https://10.10.22.35/host_ui/
The browser address changes to
https://10.10.22.35/host_ui/login/new
The URL is re-written in Nginx
2014/04/16 07:36:15 [notice] 15281#0: *81 rewritten data: "/index.php", args: "_url=/login/new", client: 10.10.1.162, server: localhost, request: "GET /host_ui/login/new HTTP/1.1", host: "10.10.22.35"
However, the action in LoginController isn't hit
/**
* Handles a new Login
*
*/
public function newAction()
{
echo "In the Login new action...";
die;
}
Any ideas why this might be?
Thanks.