-- Greg Frith <[EMAIL PROTECTED]> wrote
(on Wednesday, 19 March 2008, 06:14 PM +0000):
> I've hit a slight issue with Zend_Form and my XML config file and am 
> wondering if anyone can suggest a way to work around this.  Here is the 
> definition for one of my forms fields from my config file:
>
> <rating>
>       <type>radio</type>
>       <options>
>               <label>How would you rate the show:</label>
>               <multiOptions>
>                       <5>Loved it</5>
>                       <4>It was good</4>
>                       <3>So / So</3>
>                       <2>Not so Great</2>
>                       <1>Not my thing</1>
>               </multiOptions>
>       </options>
> </rating>
>
> I think the problem should be quite evident.  I wish values for each option 
> to be numeric, however numeric values are not valid XML element names as 
> passed in via the multiOptions block.
>
> Can anybody suggest any alternative way of creating the options from an XML 
> config which would allow me to use numeric values.  I appreciate I could 
> set the options on this element from within my code, but I would rather 
> avoid this if at all possible.

There's already an issue in the tracker regarding this:

    http://framework.zend.com/issues/browse/ZF-2824

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to