That might be why.
In the Zend_Controller_Dispatcher_Standard, it first checks to see if the
request has a valid module before it applies the routes now that I think back to
the hours of debugging I did in that component to get something working.
You may need to override the default module to get this working, or just create
a dummy content module that will _forward() the user based on the supplied
APPLICATION_ID.
Try that and see what happens. Hit up on markizano!irc.freenode.net#zftalk if
you have any issues.
Hope this helps,
-Kizano
//-----
Information Security
eMail: [email protected]
http://www.markizano.net/
On 06/16/2011 04:18 AM, tridem-zend wrote:
I relocated three weeks ago so i totally understand!
Here are the relevant folders in my current structure:
-application
-modules
--default
---controllers
----IndexController.php
----ProfileController.php
--custom-1
---controllers
----FooController.php
----BarController.php
--custom-2
---controllers
----FooController.php
----BazController.php
The default module is always used. Depending on the APPLICATION_ID another
module is added.
APPLICATION ID = 1 adds custom-1. APPLICATION_ID = 2 adds custom-2 etc.
Custom modules can have similar controllers (f.e. Foo) but mainly they have
their own ones (Bar in custom-1 or Baz in custom-2).
Regardless of the APPLICATION_ID respectively the custom-module being set I
would like to use a fixed module-name (f.e. "content").
APPLICATION_ID = 1
custom-module = custom-1
domain.tpl/content/foo => modules/custom-1/foo/index
domain.tpl/content/bar => modules/custom-1/bar/index
APPLICATION_ID = 2
custom-module = custom-2
domain.tpl/content/foo => modules/custom-2/foo/index
domain.tpl/content/baz/test => modules/custom-1/baz/test
I should have written this down from the first moment! Hope this helps!
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Dynamically-routing-a-module-to-different-controllers-tp3582673p3601831.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]