News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
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



Similar Posts

Ivan Iordanov's Blog: extending Zend_Db_Table to create NestedSet models

Alexander Netkachev's Blog: Controller/Action versus Folder/Page

Richard Lord's Blog: Managing 404 errors in the Zend Framework

Rob Allen's Blog: ID!=id (Zend Framework Tutorial Updates)

Richard Lord's Blog: New Wishlist site


Community Events









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


security PEAR zend book package PHP5 cakephp job conference example mysql releases developer framework application zendframework release code database ajax

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework