This repository has been archived by the owner on Jun 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Configuration
Nikolay Galkin edited this page Jun 7, 2013
·
1 revision
В конфигурационном файле application.yaml определены 3 секции, в .htaccess вы можете определить какую необходимо использовать:
production:
testing:
_extends: production
development:
_extends: production
production:
phpSettings:
display_startup_errors: false
display_errors: false
includePaths:
library: APPLICATION_PATH/../library
testing:
_extends: production
phpSettings:
display_startup_errors: true
display_errors: true
development:
_extends: production
phpSettings:
display_startup_errors: true
display_errors: true
xdebug:
show_local_vars: 1
var_display_max_data: 4096
var_display_max_depth: 8
Кроме настроек самого диспетчера, есть возможность подключать/настраивать плагины (в полной мере это возможно только с Core_Application_Resource_Frontcontroller)
production:
resources:
frontController:
moduleDirectory: APPLICATION_PATH/modules
moduleControllerDirectoryName: controllers
defaultControllerName: index
defaultAction: index
defaultModule: default
baseurl: "/"
env: APPLICATION_ENV
params:
prefixdefaultmodule: true
displayExceptions: false
plugins:
translate:
class: Core_Controller_Plugin_Translate
stackindex: 20
options:
default: en
locales:
ru: ru_RU
ua: uk_UA
en: en_GB
us: en_US
adapter: gettext
content: APPLICATION_PATH/../data/languages/
scan: filename
disableNotices: on
logUntranslated: off
logMessage: Undefined message '%message%' in '%locale%'
logPath: APPLICATION_PATH/../data/logs/lang.log
production:
resources:
db:
adapter: pdo_mysql
params:
host: localhost
username: p_zfc
password: zfc
dbname: p_zfc
charset: utf8
isDefaultTableAdapter: true
development:
resources:
db:
params:
profiler:
enabled:true
class:Zend_Db_Profiler_Firebug
Логирование возможно практически всеми доступными способами в Zend_Log
// @todo
production:
resources:
layout:
layout: default/layout
layoutPath: APPLICATION_PATH/layouts/scripts/
# Сессия
session:
save_path: APPLICATION_PATH/../data/session
# Инициализация реестра
registry: on
# или сразу с установкой перменных
registry:
var:value
# Инициализация дебага (см Core_Debug) - пишем в FireBug консоль
debug: on