Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. <?php
  2.  
  3. class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
  4. {
  5.    
  6.     protected function _iniDoctype()
  7.     {
  8.         $this->bootstrap('view');
  9.         $view = $this->getResource('view');
  10.         $view->doctype('XHTML1_STRICT');
  11.     }
  12.  
  13.     protected function _initNavigationConfig()
  14.     {
  15.         $this->bootstrap('layout');
  16.         $layout = $this->getResource('layout');
  17.         $view = $layout->getView();
  18.     }
  19.    
  20.     public function _initRouter()
  21.     {
  22.         $front = Zend_Controller_Front::getInstance();
  23.         $router = $front->getRouter();
  24.    
  25.         $router->addRoute('profile', new Zend_Controller_Router_Route('profile/:user', array('controller' => 'profile', 'action' => 'index', 'view' => 'index')));
  26.  
  27.     }
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement