5.4. Router

5.4. Router

5.4.1. Routes

5.4.1.1. HttpQuery

Allows routing using standard HTTP get queries Otherwise known as the "old" way of using params (index.php?module=controller)

This router is meant to override the default route (will kill other routes) to allow routing to work with HTTP params. It also handles generation of urls via ZF's url helpers.

Example 5.10. Using the HttpQuery Route

<?php
$frontController = Zend_Controller_Front::getInstance();
$router          = $frontController->getRouter();
$router->addRoute('default', new Zym_Controller_Router_Route_HttpQuery());