By skoop
via phpimpact.wordpress.com
Published: Jul 15 2008 / 12:08
Zend_Controller_Router_Rewrite is the standard framework router. It takes a URI endpoint and decomposes it into parameters to determine which module, controller, and action of that controller should receive the request. Routing occurs only once, when the request is initially received and before the first controller is dispatched.
SaveShareSend
Tags: frameworks, php
Comments
paul_houle replied ago:
I think he might be a little too obsessed with performance here. He's introducing a router that goes in front of the Zend router that cuts down on the number of regexes that need to be processed. He might consider developing a special purpose router optimized to his task.
phpimpact replied ago:
Well, if you can improve the performance or your application, why not do it? I'm not introducing anything or creating my own router, I'm just extending the standard router and using a well known technique to improve the performance of the framework.
scriptone replied ago:
Great tip thanks, regular expressions can be slow in PHP.
Voters For This Link (11)
Voters Against This Link (2)