Advertisement
Adam_Martin

Untitled

Feb 29th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
  2. {
  3.  
  4. protected $_front;
  5. protected $_view;
  6. (...)
  7.  
  8. protected function init()
  9. {
  10.     $this->bootstrap('view');
  11.     $this->bootstrap('FrontController');
  12.     $this->_view = $this->getResource('view');
  13.     $this->_front = $this->getResource('FrontController');
  14.     (...)
  15.     $this->_redirector('/');
  16. }
  17.  
  18. protected function _redirector(path)
  19. {
  20.     $response = new Zend_Controller_Response_Http();
  21.     $response->setRedirect(path);
  22.     $this->_front->setResponse($response);
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement