Hi!

Im trying to pass application options from application.ini
to the cache resource via following options:

line: 19 of application.ini:

resources.cache.frontend.regexps.^/$.cache = true


Executing:
$this->getOptions('resource');

produces exception:
Zend_Config_Exception: Error parsing
C:\Users\user\www\myzend\application/configs/application.ini on line 19 in
C:\Users\user\www\library\Zend\Config\Ini.php on line 184

It looks like the problem is $ character.
(parse_ini_file does not allows it?)

How to escape characters like this?
How to store cache regexps in ini configs?

BTW, is there any elegant way to get subarray of config?
Now in Bootstrap::_initCache() I use:
$options = $this->getOption('resources');
$cache_options = $options['cache'];

$this->getOption('resources')->cache does not work.


-- 
regards

-- 
View this message in context: 
http://www.nabble.com/Dollar-character-in-Zend_Config-key-tp23365105p23365105.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to