Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.0
-
Fix Version/s: 1.9.0
-
Component/s: Zend_Config
-
Labels:None
Description
Its its not possible to use constants in the config xml, for example APPLICATION_PATH, to configure for example resources
for example this works in ini files:
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
but in config xml it doesnt
<bootstrap>
<path>APPLICATION_PATH "/Bootstrap.php"</path>
</bootstrap>
Actualy, when using an ini file, parse_ini_file() is used. This function handles PHP constants contrary to simplexml_load_file() which does not.
In order to add the constant support in Zend_Application when using xml files, Zend_Config_Xml must be rewrite.