Skip to content

Instantly share code, notes, and snippets.

@apipkin
Created March 8, 2010 20:24
Show Gist options
  • Save apipkin/325622 to your computer and use it in GitHub Desktop.
Save apipkin/325622 to your computer and use it in GitHub Desktop.
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
;appnamespace = "Application"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
;Layout
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
;View
resources.view[] =
;Modules
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules[] =
;Database
resources.db.adapter = mysqli
resources.db.params.host = localhost
resources.db.params.username = root
resources.db.params.password = ""
resources.db.params.dbname = mydb
;Security
security.salt = "c!19eb7#ef5a7d^"
[staging : production]
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initAutoloader()
{
$loader = new Zend_Application_Module_Autoloader(array(
'namespace' => 'Default_',
'basePath' => dirname(__FILE__)
));
return $loader;
}
protected function _initModules()
{
$fc = Zend_Controller_Front::getInstance();
$fc->addModuleDirectory(APPLICATION_PATH . '/modules');
}
protected function _initLibraries()
{
Zend_Loader_Autoloader::getInstance()->registerNamespace('Echofin_');
}
}
<?php
#/modules/site/Bootstrap.php
class Site_Bootstrap extends Zend_Application_Module_Bootstrap
{
protected function _initNothing() {
echo 'nothing';exit;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment