Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main bootstrap
- <?php
- class default_bootstrap extends Zend_Application_Module_Bootstrap
- {
- protected function _initView()
- {
- // initialize view
- $view = New Zend_View();
- $view->doctype('XHTML1_STRICT');
- $view->headTitle('Default');
- $view->skin = 'blue';
- //Add it to the ViewRenderer
- $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
- $viewRenderer->setView($view);
- //Return it, so that it can be stored by the bootstrap
- return $view;
- }
- public function _initAutoload() {
- return new Zend_Application_Module_Autoloader(array('namespace' => ucfirst(basename(dirname(__FILE__))),
- 'basePath' => dirname(__FILE__)));
- }
- }
- application.ini
- [production]
- phpSettings.display_startup_errors = 0
- phpSettings.display_errors = 0
- phpSettings.date.timezone = "Europe/London"
- bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
- bootstrap.class = "Bootstrap"
- appnamespace = "Application"
- resources.frontController.controllerDirectory = APPLICATION_PATH /default/controllers"
- resources.frontController.params.displayExceptions = 0
- resources.layout.layoutPath = APPLICATION_PATH "layouts/scripts/
- resources.frontController.defaultmodule = "default"
- resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
- resources.modules[] = ""
- resources.db.adapter = "Pdo_Mysql"
- resources.db.params.username = "money"
- resources.db.params.password = "nix12"
- resources.db.params.dbname = "money"
- resources.db.isDefaultTableAdapter = true
- resources.frontController.plugins.acl = "CMS_Controller_Plugin_Acl"
- autoloaderNamespaces.CMS = "CMS_"
- autoloaderNamespaces.Designerz = "Designerz_"
- includePaths.library = APPLICATION_PATH "/../library"
- resources.view.helperPath.CMS_View_Helper = "CMS/View/Helper/"
- [staging : production]
- [testing : production]
- phpSettings.display_startup_errors = 1
- phpSettings.display_errors = 1
- [development : production]
- resources.db.params.profiler = true
- phpSettings.display_startup_errors = 1
- phpSettings.display_errors = 1
- resources.frontController.params.displayExceptions = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement