Quantcast

Zend_Route stopped working : how to debug it?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Zend_Route stopped working : how to debug it?

mbneto
I have a route manually defined in my Bootstrap

$route = new Zend_Controller_Router_Route (
                'api/v1/:action',
                array('controller' => 'api-v1'));

$router->addRoute('api-v1', $route);

It used to work but now I get the custom 404 page not found.

Other routes, either manually or dynamically, work.

The controller/action exists (if I call directly the api-v1 in the browser
it gives the result).

Any ideas on where can I debug?


Ex.

foo.com/api-v1/login works foo.com/api/v1/login does not
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Zend_Route stopped working : how to debug it?

frederic ferri
Did you try to get rid of the '-' ?

Not 100% sure but i think i had trouble with characters ( like '_' ) even if they are valid in the constraint definition ( i use '[a-zA-Z][a-zA-Z0-9_-]*' )

Hope this could help
Loading...