Zend Framework application.ini
Wer kennt das nicht: Ein neues Zend Framework Projekt steht an und das große Parametersuchen für die applicstion.ini geht wieder los. Wie gings das noch mal mit der Datenbank? Oder dem Memcache-Backend? Für alle die es leid sind stelle ich hier eine application.ini für die meisten Fälle zur Verfügung:
[production] phpSettings.display_startup_errors = 0 phpSettings.display_errors = 0 phpSettings.date.timezone = "Europe/Berlin" includePaths.library = APPLICATION_PATH "/../library" bootstrap.path = APPLICATION_PATH "/Bootstrap.php" bootstrap.class = "Bootstrap" resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" resources.frontController.params.displayExceptions = 0 ;##################################### ; setup namespace and autoloader ;##################################### appnamespace = "Webrocker" autoloadernamespaces.0 = "Webrocker_" ;##################################### ; setup a frontController Plugin ;##################################### resources.frontController.coolplugin.cacheaction.class = "Webrocker_Plugin_CoolPlugin" ;##################################### ; setup custom route ;##################################### resources.router.routes.content.route = "/content/:action/*" resources.router.routes.content.defaults.controller = "content" resources.router.routes.content.defaults.action = "index" resources.router.routes.content.defaults.module = "default" ;##################################### ; setup cachebackends for Memcached ;##################################### resources.cachemanager.mycache.frontend.name = Core resources.cachemanager.mycache.frontend.options.automatic_serialization = On resources.cachemanager.mycache.backend.name = Memcached resources.cachemanager.mycache.backend.options.servers.nodeone.host = 192.168.150.12 resources.cachemanager.mycache.backend.options.servers.nodeone.port = 11211 resources.cachemanager.mycache.backend.options.servers.nodetwo.host =192.168.150.13 resources.cachemanager.mycache.backend.options.servers.nodetwo.port = 11211 ;##################################### ; setup database connection ;##################################### resources.db.adapter = "pdo_mysql" resources.db.params.host = "localhost" resources.db.params.username = "webuser" resources.db.params.password = "XXXXXXX" resources.db.params.dbname = "livedb" resources.db.isDefaultTableAdapter = true resources.db.defaultMetadataCache = "mycache" [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 resources.db.params.dbname = "devdb"


