Google News
logo
Zend framework - Interview Questions
What is routing, and how it works?
Routing is the process of taking a URI endpoint (that part of the URI which comes after the base URL) and decomposing it into parameters to determine which module, controller, and action of that controller should receive the request.
 
These values of the module, controller, action, and other parameters are packaged into a Zend_Controller_Request_Http object which is then processed by Zend_Controller_Dispatcher_Standard.
 
Routing occurs only once when the request is initially received and before the first controller is dispatched. Zend_Controller_Router_Rewrite is the standard framework router.
Advertisement