Hello,

I'm having trouble getting the Zend_Controller_Router_Route_Hostname to work properly,
with ZF 1.9.4.

In my config I have:
resources.router.routes.www.type = "Zend_Controller_Router_Route_Hostname"
resources.router.routes.www.route = ":module.domain"
resources.router.routes.www.defaults.module = "frontend"

resources.router.routes.www.chains.index.type = "Zend_Controller_Router_Route"
resources.router.routes.www.chains.index.route = ":controller/:action/*"
resources.router.routes.www.chains.index.defaults.controller = "index"
resources.router.routes.www.chains.index.defaults.action = "index"

At first look it seems to work just fine. I have two modules:
services.domain
admin.domain

The default module "frontend", answers to everything else that does not
exist.

I can access services.domain/mycontroller/myaction/ and i get the right
controller and action, from the right module.

But here comes my problem: I can't specify parameters.
I get invalid controller exception on this url:
services.domain/mycontroller/myaction/key1/value1/key2/value2

It tries to find mycontroller in the frontend module - not the services module.

I tried messing around with the Zend_Controller_Router_Route and tell it to
"catch" specific params:

resources.router.routes.www.chains.index.type = "Zend_Controller_Router_Route" resources.router.routes.www.chains.index.route = ":controller/:action/:param1/:param2"
resources.router.routes.www.chains.index.defaults.controller = "index"
resources.router.routes.www.chains.index.defaults.action = "index"

This works just as expected, however I would like to be able to do it with
a wildcard (:controller/:action/*), as it normally would.

What's wrong with my setup?

If I'm missing something obvious, please point me to the *specific* section in the documentation that explains this issue, I haven't been able to find anything relevant
on this issue - besides a few other people with the same issue.

/Ole

Reply via email to