Hello List,

I working on a multi-account application, where the user can access it
by using this kind of URL
http://domain.de/<account>/<module>/<controller>/<action>/*

To get this kind of behavior I added this routes to my application.ini:
(I removed the prefix "resources.router.routes" from every line for
better readability)
<snip>
; resources (routes)
.defaultmodule.type            = Zend_Controller_Router_Route_Module
.defaultmodule.abstract        = On
.defaultmodule.defaults.module = "cms"

; route: account
.account.type             = Zend_Controller_Router_Route
.account.route            = ":account"
.account.reqs.account     = "(0|[0-9]{5,8})"
.account.defaults.account = "0"

; route: chaining
.default.type  = Zend_Controller_Router_Route_Chain
.default.chain = "account, defaultmodule"
</snap>

Now I want to add user-portal that's depending on the <account> and
second parameter <user> that i want to be also a part of the URL like
http://domain.de/<account>/<user>/<module>/<controller>/<action>/*.

I tried to add a new route to my application.ini like
<snip>
; route: user portal
.user.type             = Zend_Controller_Router_Route
.user.route            = ":account/:user"
.user.reqs.user        = "(0|[0-9]{2,4})"
.user.defaults.user    = "0"
.user.reqs.account     = "(0|[0-9]{5,8})"
.user.defaults.account = "0"
<snap>

But now i get on all my other sites this error message:
Message: :account/:user is not specified

Because I only want to use the route "user" in the module "portal" is it
possible to bind the route to this specific module?


Many thanks
    Bastian

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to