I have some questions concerning the Zend Framework. I am attempting to route all static pages through the default controller using the now default displayAction()
I think your on the right track however here are some other ideas.
Break up your routing per sections in your INI: ie a blog router, a static page router a forum router etc.. (I think you are already doing this)
Use the various router classes to handle routing per section rather than sending it to a controller.
Static: http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.static
All: http://framework.zend.com/manual/en/zend.controller.router.html
Some links that may help:
Your approach seems reasonable to me. However, perhaps you should take advantage of the __call
method instead, which would allow you to more easily route your actions...
Setup your route like this:
resources.router.routes.static-pages.route = /:action
resources.router.routes.static-pages.defaults.module = default
resources.router.routes.static-pages.defaults.controller = index
And your controller like so:
public function someAction() {
//going to URL /some will now go into this method
}
public function __call($name, $args) {
//all URLs which don't have a matching action method will go to this one
}