Cristian Bichis-3 wrote:
> 
> Hello,
> 
> I have one question while working with a Zend_Config_Ini.
> 
> I need to assign values like that:
> 
> elements.ENCODING.options.multiOptions.UTF-8 = "UTF-8"
> 
> is this correct ?

I think it is. As far as i know the illegal characters are: { } | & ~ ! [ (
) " , none of which occur in your key


How about this ?
> 
> elements.ENCODING.options.multiOptions.Windows_1251 (CP1251) = 
> "Windows_1251 (CP1251)"

This one contains illegal characters in the key (see above)


How i can specify those keys to be correct ?

You could define it like this:
elements.ENCODING.options.multiOptions.0.key = "Windows_1251 (CP1251)"
elements.ENCODING.options.multiOptions.0.value = "Windows_1251 (CP1251)"
elements.ENCODING.options.multiOptions.1.key = "UTF-8"
elements.ENCODING.options.multiOptions.1.value = "UTF-8"

Although in your specific case it has little sense as the key seems to match
the value always. But this is how you could solve it when the key and the
value are different.

-- 
Best regards,
Cristian Bichis
www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com





-----
http://devshed.excudo.net http://devshed.excudo.net 
-- 
View this message in context: 
http://www.nabble.com/Zend_Config_ini-keys-tp20726180p20734891.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to