Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.09 KB | None | 0 0
  1. main bootstrap
  2.  
  3. <?php
  4. class default_bootstrap extends Zend_Application_Module_Bootstrap
  5. {
  6.  
  7.     protected function _initView()
  8.     {
  9.         // initialize view
  10.         $view = New Zend_View();
  11.         $view->doctype('XHTML1_STRICT');
  12.         $view->headTitle('Default');
  13.         $view->skin = 'blue';
  14.        
  15.         //Add it to the ViewRenderer
  16.         $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
  17.         $viewRenderer->setView($view);
  18.        
  19.         //Return it, so that it can be stored by the bootstrap
  20.         return $view;
  21.     }
  22.     public function _initAutoload() {
  23.     return new Zend_Application_Module_Autoloader(array('namespace' => ucfirst(basename(dirname(__FILE__))),
  24.      'basePath' => dirname(__FILE__)));
  25.      
  26.     }
  27.  
  28. }
  29.  
  30. application.ini
  31.  
  32. [production]
  33. phpSettings.display_startup_errors = 0
  34. phpSettings.display_errors = 0
  35. phpSettings.date.timezone = "Europe/London"
  36. bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
  37. bootstrap.class = "Bootstrap"
  38. appnamespace = "Application"
  39. resources.frontController.controllerDirectory = APPLICATION_PATH /default/controllers"
  40. resources.frontController.params.displayExceptions = 0
  41. resources.layout.layoutPath = APPLICATION_PATH "layouts/scripts/
  42. resources.frontController.defaultmodule = "default"
  43. resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
  44. resources.modules[] = ""
  45. resources.db.adapter = "Pdo_Mysql"
  46. resources.db.params.username = "money"
  47. resources.db.params.password = "nix12"
  48. resources.db.params.dbname = "money"
  49. resources.db.isDefaultTableAdapter = true
  50. resources.frontController.plugins.acl = "CMS_Controller_Plugin_Acl"
  51. autoloaderNamespaces.CMS = "CMS_"
  52. autoloaderNamespaces.Designerz = "Designerz_"
  53. includePaths.library = APPLICATION_PATH "/../library"
  54. resources.view.helperPath.CMS_View_Helper = "CMS/View/Helper/"
  55.  
  56.  
  57.  
  58.  
  59.  
  60. [staging : production]
  61.  
  62. [testing : production]
  63. phpSettings.display_startup_errors = 1
  64. phpSettings.display_errors = 1
  65.  
  66. [development : production]
  67. resources.db.params.profiler = true
  68. phpSettings.display_startup_errors = 1
  69. phpSettings.display_errors = 1
  70. resources.frontController.params.displayExceptions = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement