Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can do this by using routes</p> <p>in your bootstrap do the following</p> <pre class="lang-php prettyprint-override"><code>protected function _initMyRoutes() { $this-&gt;bootstrap('frontController'); $front = $this-&gt;getResource('frontController'); $router = $front-&gt;getRouter(); $config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/routes.ini', APPLICATION_ENV); $router-&gt;addDefaultRoutes(); $router-&gt;addConfig($config, 'routes'); return $router; } </code></pre> <p>and in the configs directory create a file called routes.ini and in it place the following</p> <pre class="lang-ini prettyprint-override"><code>routes.myRoute.type = "Zend_Controller_Router_Route_Static" routes.myRoute.route = "/subaction/" routes.myRoute.defaults.module = "mymodule" routes.myRoute.defaults.controller = "index" routes.myRoute.defaults.action = "subaction" </code></pre> <p>OR</p> <p>you can add the route directly in your bootstrap with</p> <pre class="lang-php prettyprint-override"><code>protected function _initMyRoutes() { $this-&gt;bootstrap('frontController'); $front = $this-&gt;getResource('frontController'); $router = $front-&gt;getRouter(); $router-&gt;addDefaultRoutes(); $route = new Zend_Controller_Router_Route_Static( 'subaction', array('module' =&gt; 'mymodule', 'controller' =&gt; 'index', 'action' =&gt; 'subaction') ); $router-&gt;addRoute('subaction', $route); return $router; } </code></pre> <p>That should do the trick but be adviced using routes can really be a pain.</p> <p><a href="http://framework.zend.com/manual/1.11/en/zend.controller.router.html" rel="nofollow">More about routes in the ZF manual</a></p>
    singulars
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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