Advertisement
Guest User

JellyBelly

a guest
Feb 4th, 2010
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.90 KB | None | 0 0
  1. <?php
  2.  
  3. class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
  4. {
  5.     /**
  6.      * Set the default application timezone
  7.      *
  8.      * @return void
  9.      */
  10.     protected function _initTimezone()
  11.     {
  12.         date_default_timezone_set('Europe/Rome');
  13.     }
  14.    
  15.     /**
  16.      * Bootstrap autoloader for application resources
  17.      *
  18.      * @return Zend_Application_Module_Autoloader
  19.      */
  20.     protected function _initAutoload()
  21.     {
  22.         $autoloader = new Zend_Application_Module_Autoloader(array(
  23.             'namespace' => 'Default',
  24.             'basePath'  => dirname(__FILE__),
  25.         ));
  26.         return $autoloader;
  27.     }
  28.  
  29.     /**
  30.      * Bootstrap the view doctype
  31.      *
  32.      * @return void
  33.      */
  34.     protected function _initDoctype()
  35.     {
  36.         $this->bootstrap('view');
  37.         $view = $this->getResource('view');
  38.         $view->doctype('XHTML1_STRICT');
  39.     }
  40. }
  41.  
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement