Zend_Application_Bootstrap
[ class tree: Zend_Application_Bootstrap ] [ index: Zend_Application_Bootstrap ] [ all elements ]

Source for file Bootstrap.php

Documentation is available at Bootstrap.php

  1. <?php
  2. /**
  3.  * MediaSearch
  4.  *
  5.  * LICENSE
  6.  *
  7.  * "THE BEER-WARE LICENSE" (Revision 42):
  8.  * "Sven Strittmatter" <ausserirdisch@sven-space.de> wrote this file.
  9.  * As long as you retain this notice you can do whatever you want with
  10.  * this stuff. If we meet some day, and you think this stuff is worth it,
  11.  * you can buy me a beer in return.
  12.  *
  13.  * $Author$
  14.  * $Revision$
  15.  *
  16.  * @category    MediaSearch
  17.  * @package     Zend_Application_Bootstrap
  18.  * @copyright   Copyright (c) 2009 Sven Strittmatter
  19.  */
  20.  
  21. /**
  22.  * Applications bootstrap class.
  23.  *
  24.  * @see Zend_Application_Bootstrap_Bootstrap
  25.  *
  26.  * @category   MediaSearch
  27.  * @package    Zend_Application
  28.  * @uses       Zend_View
  29.  * @uses       Zend_Controller_Action_Helper_ViewRenderer
  30.  * @uses       Zend_Controller_Action_HelperBroker
  31.  * @uses       Zend_Loader_Autoloader_Resource
  32.  * @copyright  Copyright (c) 2009 Sven Strittmatter
  33.  */
  34. class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {
  35.     /**
  36.      * Initializes the view.
  37.      *
  38.      * @access protected
  39.      * @return Zend_View 
  40.      */
  41.     protected function _initView({
  42.         $view new Zend_View();
  43.         $view->doctype('XHTML1_TRANSITIONAL');
  44.         $view->headTitle('¬øOnde esta maconha?');
  45.         $view->addHelperPath('ZendX/JQuery/View/Helper''ZendX_JQuery_View_Helper');
  46.         $viewRenderer new Zend_Controller_Action_Helper_ViewRenderer();
  47.         $viewRenderer->setView($view);
  48.         Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
  49.  
  50.         return $view;
  51.     }
  52.  
  53.     /**
  54.      * Innitializes the autoloader.
  55.      *
  56.      * @access protected
  57.      */
  58.     protected function _initAutoload({
  59.         $resourceLoader new Zend_Loader_Autoloader_Resource(array(
  60.             'basePath'  => APPLICATION_PATH,
  61.         'namespace' => 'MediaSearch_',
  62.             'resourceTypes' => array(
  63.                 'model' => array('namespace' => 'Model''path' => 'models/'),
  64.                 'table' => array('namespace' => 'Model_DbTable''path' => 'models/DbTable')
  65.             )
  66.     ));
  67.     }
  68. }

Documentation generated on Mon, 17 Aug 2009 14:51:42 +0200 by phpDocumentor 1.4.2