News Archive
PhpRiot Newsletter
Your Email Address:

More information

Zend Framework Routing with XML

Note: This article was originally published at Zend Developer Zone on 13 May 2010.
Zend Developer Zone
If you use Zend Framework you probably used the initRoutes() function in your Initializer.php to create nice URI's and creating some different routing in your application. To create a customized route for your application you can use the Zend_Controller_Router_Route class from the Zend Framework. If you use the common syntax you have to repeatedly build routes in code for all routes in your application. This makes it not maintainable for programmers. To fix this problem we are going to use a XML file with all routing information.