How to add localization in the URL using the Zend Router

crazyguy

New Member
I have a Zend Framework site that setups all routes in a file, routes.ini. The routes look like this:\[code\]routes.popular.route = popular/:type/:page/:sortOrderroutes.popular.defaults.controller = popularroutes.popular.defaults.action = indexroutes.popular.defaults.type = imagesroutes.popular.defaults.sortOrder = alltimeroutes.popular.defaults.page = 1routes.popular.reqs.type = \w+routes.popular.reqs.page = \d+routes.popular.reqs.sortOrder = \w+\[/code\]In bootstrap.php they are read and added to the frontController:\[code\]$config = new Zend_Config_Ini(APPLICATION_PATH .
 
Back
Top