News Feed

News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPImpact Blog:
Zend Framework Encapsulating routes into modules
August 04, 2008 @ 13:47:35

On the PHP::Impact blog, Federico Cargnelutti has another helpful tip to use in Zend Framework applications - encapsulating routes into modules.

You can encapsulate routes into modules by splitting the routes into different files and extending the Zend_Controller_Router_Rewrite class. But, what if you want to use the Redirector helper to set a URL based on a registered route?

His method creates the routing instance and overwrites the default getRoute method with a custom one in the extending class.

0 comments voice your opinion now!
zendframework encapsulating route module override custom getroute

blog comments powered by Disqus

Similar Posts

Inside Open Source: Zend Framework Cache Improvement

Ben Ramsey's Blog: Zend Framework View Notes How to Install PHP 5 on Linux

Content with Style: Custom Zend Form Image Upload Element

Rob Allen: Routing to a controller with Slim

Community Events

Don't see your event here?
Let us know!

example performance install release community php7 framework podcast introduction symfony2 laravel composer series configure application conference api library opinion interview

All content copyright, 2015 :: - Powered by the Solar PHP Framework