I've been trying to get some custom routes working with
Zend_Application:
application.ini:
<snip>
; Routes
resources.router.routes.person.type =
"Zend_Controller_Router_Route_Regex"
resources.router.routes.person.route = "person/(.+)-(\d+)\.html"
resources.router.routes.person.controller = "person"
resources.router.routes.person.action = "detail"
resources.router.routes.person.map.1 = "name"
resources.router.routes.person.map.2 = "id"
resources.router.routes.person.reverse = "person/%s-%d.html"
</snip>
By reading some of the recent messages at the list, I've found out,
that the routes are automatically added to the standard router and
should be available to use. Am I correct?
When trying to use one of the routes, I just see the Index-page, like
no router is used at all.
I used to use: http://localhost/foobar/public/person/lorem-ipsum-42.html
I'd appreciate any hints. :)
Best regards and thanks in advance,
Marcus
没有评论:
发表评论