I'm building a Zend Framework sites. It's MVC, so uses controllers so I have controllers like NewsController that is accessed via /news etc. However, another of my controllers is PagesController, which handles just static content pages.
My PagesController is also my default controller. So http://example/ returns PagesController::home(). I also have a method called view() that takes $slug as a parameter.
What I'd like to do is set up a route whereby if I request http://example.com/about and there isn't a NewsController, that the request is passed to the view() method of my PagesController.
I'm a Zend Framework n00b so have no idea where to start with this. Is this possible? If so, how could I achieve this?