/
application.ini
192 lines (173 loc) · 6.49 KB
/
application.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
[production]
; +------------------+
; | PHP ini settings |
; +------------------+
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
phpSettings.date.timezone = "Europe/London"
; +-----------------------------+
; | Include path and autoloader |
; +-----------------------------+
includePaths.phptal = BASE_PATH "/library/Phptal"
;includePaths.vendor = BASE_PATH "/vendor"
; Zend namespace below maps to ZF2 and other PSR-2 compliant libraries that You could put inside /vendor folder
;autoloaderNamespaces[] = "Zend"
autoloaderNamespaces[] = "Ztal"
autoloaderNamespaces[] = "PHPTAL"
autoloaderNamespaces[] = "ZFDebug"
; +--------------------------------+
; | Zend_Application and Bootstrap |
; +--------------------------------+
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
;appnamespace = ""
; +--------+
; | Locale |
; +--------+
resources.locale.default = "en"
resources.locale.force = false
resources.locale.cache = app
; +-----------+
; | Translate |
; +-----------+
resources.translate.adapter = "Array"
resources.translate.content = BASE_PATH "/data/languages"
resources.translate.options.disableNotices = true
resources.translate.scan = Zend_Translate::LOCALE_DIRECTORY
;
; Options for Zend_Translate and it's adapters
; resources.translate.options.clear = false
; resources.translate.options.disableNotices = false
; resources.translate.options.ignore = "."
; resources.translate.options.logUntranslated = false
; resources.translate.options.reload = false
; resources.translate.options.route = ;null
; resources.translate.options.scan = ;null
; resources.translate.options.tag = "Zend_Translate"
;
; Options for Zend_Translate_Adapter_Csv
; resources.translate.options.delimiter = ";"
; resources.translate.options.enclosure = '"'
; resources.translate.options.length = 0
;
; Options for Zend_Translate_Adapter_Xliff and Tmx
; resources.translate.options.useId = true
;
; Setting a logger via this config file is currently not supported, but the
; logging options can be set:
; resources.translate.options.logMessage = "Untranslated message within '%locale%': %message%"
; resources.translate.options.logPriority = 5
;
; Use a cache for Zend_Translate. The cache has to be configured with the
; cachemanager resource.
; resources.translate.cache = <name>
;
; The translate instance is registered in Zend_Registry with the following key
; resources.translate.options.registry_key = "Zend_Translate"
; +-----------------+
; | FrontController |
; +-----------------+
resources.modules[] = ""
resources.frontController.env = APPLICATION_ENV
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.frontController.moduleControllerDirectory = "controllers"
resources.frontController.defaultModule = "home"
resources.frontController.defaultControllerName = "index"
resources.frontController.defaultAction = "index"
resources.frontController.params.prefixDefaultModule = 1
resources.frontController.params.displayExceptions = 0
;resources.frontController.plugins[] = Zend_Controller_Plugin_ErrorHandler
; +--------+
; | Layout |
; +--------+
resources.layout.layout = "layout"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
resources.layout.mvcSuccessfulActionOnly = true
; resources.layout.contentKey = "content"
; resources.layout.helperClass = Zend_Layout_Controller_Action_Helper_Layout
; resources.layout.pluginClass = Zend_Layout_Controller_Plugin_Layout
; +--------------------+
; | Zend_View and Ztal |
; +--------------------+
resources.view[] =
resources.view.doctype = "XHTML5"
resources.view.encoding = "UTF-8"
resources.view.charset = "UTF-8"
ztal.cachePurgeMode = 0
ztal.highlightFailedTranslations = 0
ztal.compressWhitespace = 1
ztal.cacheDirectory = BASE_PATH "/temp/phptal/"
ztal.customModifiersDirectory = BASE_PATH "/data/phptal/customModifiers"
; +----------+
; | Database |
; +----------+
resources.db.adapter = "pdo_pgsql"
resources.db.params.host = "localhost"
resources.db.params.username = "postgres"
resources.db.params.password = ""
resources.db.params.dbname = "testdb"
resources.db.isDefaultTableAdapter = true
resources.db.defaultMetadataCache = "app"
; +-----+
; | Log |
; +-----+
resources.log.stream.writerName = "Stream"
resources.log.stream.writerParams.stream = BASE_PATH "/data/logs/application.log"
resources.log.stream.writerParams.mode = "a"
resources.log.stream.filterName = "Priority"
resources.log.stream.filterParams.priority = 4
; +--------------+
; | Cachemanager |
; +--------------+
resources.cachemanager.app.frontend.name = Core
resources.cachemanager.app.frontend.customFrontendNaming = false
resources.cachemanager.app.frontend.options.lifetime = 7200
resources.cachemanager.app.frontend.options.automatic_serialization = true
resources.cachemanager.app.backend.name = File
resources.cachemanager.app.backend.customBackendNaming = false
resources.cachemanager.app.backend.options.cache_dir = BASE_PATH "/temp/cache"
resources.cachemanager.app.frontendBackendAutoload = true
; +---------+
; | Session |
; +---------+
resources.session.save_path = BASE_PATH "/temp/sessions"
resources.session.use_only_cookies = true
resources.session.cookie_lifetime = 604800
resources.session.gc_maxlifetime = 86400 ; 1 day
resources.session.remember_me_seconds = 604800 ; 1 week
; Settings required for database adapter
; resources.session.saveHandler.class = "Zend_Session_SaveHandler_DbTable"
; resources.session.saveHandler.options.name = "sessions"
; resources.session.savehandler.options.primary = "session_id"
; resources.session.saveHandler.options.modifiedColumn = "modified"
; resources.session.saveHandler.options.dataColumn = "session_data"
; resources.session.saveHandler.options.lifetimeColumn = "lifetime"
[staging : production]
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
ztal.cachePurgeMode = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1
; +--------------------+
; | Zend_View and Ztal |
; +--------------------+
ztal.cachePurgeMode = 0
ztal.highlightFailedTranslations = 1
ztal.compressWhitespace = 0
; +-----------+
; | Translate |
; +-----------+
; We do not need this option, ZTAL will highlight invalid translations with double **
resources.translate.options.disableNotices = false
; +---------+
; | ZFDebug |
; +---------+
zfdebug.plugins.Variables = null
zfdebug.plugins.Time = null
zfdebug.plugins.Memory = null
zfdebug.plugins.Exception = null
zfdebug.plugins.File[] = ""
zfdebug.plugins.Database[] = ""