Hello!
I have a controller: TestController View: indexAction (show site) method: retriveAction (gets statuses to show via ajax call)
When I use URL "/sofiety/test" Ajax works fine. It calls retrive and gets the information.
When I call "/sofiety/test/index" it fails. Exact same call as original... It calls the original view (index) again instead of retrieve.
I can't use Ajax in any action, like "showAction". Only on default controller call. It just calls the original view/
My routing is standard:
<?php
/*
* Define custom routes. File gets included in the router service definition.
*/
$router = new Phalcon\Mvc\Router();
$router->add('/confirm/{code}/{email}', array(
'controller' => 'session',
'action' => 'confirmEmail'
));
return $router;
Thank you! :)