How-to do I extend the Zend_Controller_Request_Http

jorgerene122

New Member
How do I extend the Zend_Controller_Request_Http, and let the application know of My_Controller_Request_Http ??SolutionThis is how i got it working following Gordons pointers.Firts save the following file your library: My/Controller/Request/Http.php\[code\]<?phpclass My_Controller_Request_Http extends Zend_Controller_Request_Http { /* Add all your custom functions here */}\[/code\]In the bootstrap class i added the following.\[code\]function _initApplication (){ /* Doing some other stuff here */ $this->bootstrap('frontcontroller'); $front = $this->getResource('frontcontroller'); $front->setRequest('My_Controller_Request_Http'); /* Registering some plugins here, not relevant */}\[/code\]
 
Back
Top