| Active Users: |
28 |
| Accounts: |
0 |
| Guests: |
28 |
|
|
|
|
|
|
|
Phrappe_Controller_Front, Part 2: Extending Zend_Controller_Front
In the previous article I introduced a method to describe routing information within a configuration file built specially for the Zend_Config object. The example code I gave was done in XML, but itÂ’s worth reiterating that the same can be done with an INI file or a file containing a PHP array.
Now IÂ’d like to extend the Zend_Controller_Front class to automate the retrieval and use of the configuration settings we capture in our Zend_Config object. WeÂ’ll use the Zend_Config object to create and build out a Zend_Controller_RewriteRouter object. Once weÂ’re done, weÂ’ll simply set it to our front controller like normal (almost), and dispatch our HTTP request.
| Zend Framework Version: |
Unknown
|
| Author Name: |
John D Wells
|
| Source: |
John D Wells
|
| Referred By: |
Zend Framework Tutorials
|
|
|
|
|
|
|
|
|
|
|
|