2009年6月1日星期一

Re: [fw-mvc] How to create a default route that point to the error controller?

Figured it out, so here is what I did in my routes.ini:

; defaults to error controller
default.type = Zend_Controller_Router_Route_Regex
default.route = ".+"
default.defaults.module = default
default.defaults.controller = error
default.defaults.action = not-found
default.reverse = "%s"

Yi Tang wrote:
> I've tried just creating a "default" route, but then none of my custom
> view helpers load. Anyone has done something like this before?
>
> Thanks.
>
> Yi
>

没有评论: