Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
- {
- protected $_front;
- protected $_view;
- (...)
- protected function init()
- {
- $this->bootstrap('view');
- $this->bootstrap('FrontController');
- $this->_view = $this->getResource('view');
- $this->_front = $this->getResource('FrontController');
- (...)
- $this->_redirector('/');
- }
- protected function _redirector(path)
- {
- $response = new Zend_Controller_Response_Http();
- $response->setRedirect(path);
- $this->_front->setResponse($response);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement