Hey, No, You can't use HTML characters inside the ini file. Use HTML Entities instead.
Yes you can use $config->param1->param2 etc.. take a look at http://framework.zend.com/manual/en/zend.config.adapters.ini.html on how to use it. Vince. On Mon, May 4, 2009 at 12:03 PM, admirau <[email protected]> wrote: > > 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. > > -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer. Zend Framework Certified Engineer. -- http://www.vadimg.co.il/
