Guest User

Untitled

a guest
Jun 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <?php
  2.  
  3. class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
  4. {
  5.  
  6. protected function _initAutoload()
  7. {
  8. $moduleLoader = new Zend_Application_Module_Autoloader(array(
  9. 'namespace' => '',
  10. 'basePath' => APPLICATION_PATH));
  11. return $moduleLoader;
  12. }
  13.  
  14.  
  15. function _initViewHelpers()
  16. {
  17. $this->bootstrap('layout');
  18. $layout = $this->getResource('layout');
  19. $view = $layout->getView();
  20. $view->doctype('XHTML1_STRICT');
  21. $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
  22. $view->headTitle()->setSeparator(' - ');
  23. $view->headTitle('Zend Framework Tutorial');
  24. }
  25. }
Add Comment
Please, Sign In to add comment