Hey,

I know that you could use html entities as values, Not sure if that applies
for keys as well.

Then use it as an array

$array = Bootstrap::getOption('myoption');

$array['key1']['key2']['key2'];

I am not sure how the getOption method returns the array if it's mullti
dimensional or not, I did not test it yet.

On Mon, May 4, 2009 at 12:59 PM, admirau <[email protected]> wrote:

>
>
>
> vince. wrote:
> >
> > Hey,
> >
> > No, You can't use HTML characters inside the ini file. Use HTML Entities
> > instead.
> >
> >
>
> I'm afraid I don't understand what you mean.
> What works fine:
> resources.cache.frontend.regexps.a.cache = true
> This doesn't work:
> resources.cache.frontend.regexps.$.cache = true
>
> How to escape this dollar character?
> By HTML entity I mean:
> resources.cache.frontend.regexps.&#36;.cache = true
> But this obviously doesn't work too.
>
>
> vince. wrote:
> >
> >
> > 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.
> >
> >
>
> That's true for Zend_Config instances.
> But Bootstrap::getOption('myoption') returns array,
> not ZC instance.
>
> --
> regards
> takeshin
>
> --
> View this message in context:
> http://www.nabble.com/Dollar-character-in-Zend_Config-key-tp23365105p23365685.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/

Reply via email to