Hi,

I've added a wildcard route to my bootstrap, so that I can catch the request
URI which I use to find a piece of XML in the controller:

$router->addRoute('XMLroute', new Zend_Controller_Router_Route('*', 
array('controller' => 'index', 'action' => 'index')));

This way all urls will go throught the IndexController and will parse a
piece of XML to the view. 

But now there is an exception, there is a gallery page which will also need
to get gallery images from the database and possible a url with an id so
that when clicked, you go the that one gallery image. 

My idea was to add a GalleryController to handle the calls to the gallery,
but this is ofcourse now caught by the route I set with the wildcard.

Is there a way to have both working in the boostrap, so that all calls go to
the IndexController except for the gallery call?


-- 
View this message in context: 
http://n4.nabble.com/Adding-a-wildcard-route-with-an-exception-tp2015701p2015701.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to