Note that there are some explanatory texts on larger screens.

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

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload