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

Nick Lo's Blog:
RewriteRouter and Zend_Config play together
Jul 18, 2006 @ 11:07:38

Nick Lo (author of the now infamous Mr Dizzy story on getters/setters in constructors) brings us another new tutorial for working with the Zend Framework, getting the RewriteRouter and Zend_Config to play nicely together.

While getting the hang of the Zend_Controller_RewriteRouter, which is now included in Zend Framework 0.1.5, I was adding the routes in my index.php (bootstrap) file and wondered if there was any way of storing them elsewhere. It is possible to loop over Zend_Controller_RewriteRouter::addRoutes() but the method I will describe here is based on some recent updates to Zend_Controller_RewriteRouter by its author Michael Minicki.

His example shows the creation of some simple routes with this new functionality - creating the route definitions, loading them in, creating the object for them, and passing it into the front controller. It's as simple as that!

tagged: zend framework rewriterouter zend_config tutorial zend framework rewriterouter zend_config tutorial

Link:

Nick Lo's Blog:
RewriteRouter and Zend_Config play together
Jul 18, 2006 @ 11:07:38

Nick Lo (author of the now infamous Mr Dizzy story on getters/setters in constructors) brings us another new tutorial for working with the Zend Framework, getting the RewriteRouter and Zend_Config to play nicely together.

While getting the hang of the Zend_Controller_RewriteRouter, which is now included in Zend Framework 0.1.5, I was adding the routes in my index.php (bootstrap) file and wondered if there was any way of storing them elsewhere. It is possible to loop over Zend_Controller_RewriteRouter::addRoutes() but the method I will describe here is based on some recent updates to Zend_Controller_RewriteRouter by its author Michael Minicki.

His example shows the creation of some simple routes with this new functionality - creating the route definitions, loading them in, creating the object for them, and passing it into the front controller. It's as simple as that!

tagged: zend framework rewriterouter zend_config tutorial zend framework rewriterouter zend_config tutorial

Link:


Trending Topics: