Hello everybody. I'm struggling with the Zend-Router. I want to chain language in my url. Everything works fine but my modular routing.
If i call: http://domain.de/en/index
- the indexAction of my IndexController of the default module is executed and translated.
Same goes for:
http://domain.de/en/about
So the aboutAction of the IndexController is called.
If i call: http://domain.de/en/forum/index
it should execute the indexAction of the IndexController of the forum module. But it does not.
My aim is to shorten my urls as good as possible, so there is no "default" or "index" in it.
Can you help me editing my routes.xml so i get the wanted results?
my routes.xml
<config>
<routes>
<sc1 type="Zend_Controller_Router_Route">
<route>:lang/:@module/:@controller/:@action</route>
<defaults>
<lang>de</lang>
<module>default</module>
<controller>index</controller>
<action>index</action>
</defaults>
</sc1>
<sc2 type="Zend_Controller_Router_Route">
<route>:lang/:@module/:@action</route>
<defaults>
<lang>de</lang>
<module>default</module>
<controller>index</controller>
<action>index</action>
</defaults>
</sc2>
<sc3 type="Zend_Controller_Router_Route">
<route>:lang/:@controller/:@action</route>
<defaults>
<lang>de</lang>
<module>default</module>
<controller>index</controller>
<action>index</action>
</defaults>
</sc3>
<sc4 type="Zend_Controller_Router_Route">
<route>:lang/:@action</route>
<defaults>
<lang>de</lang>
<module>default</module>
<controller>index</controller>
<action>index</action>
</defaults>
</sc4>
</routes>
</config>
Do you have an idee?
Thank you in advance, Tobias