(on Tuesday, 25 November 2008, 10:48 AM -0600):
> Bummer... We could really use some flexibilities here. Anyhow, for now what's
> the default view helper being used for displaying form select element?
Zend_View_Helper_FormSelect
> Matthew Weier O'Phinney wrote:
>
> -- Yi Tang <ytang@mbira.com> wrote
> (on Monday, 24 November 2008, 04:24 PM -0600):
>
>
> I'm trying to add some options with the same value but different texts
> to a Zend_Form_Select element, looks like Zend_Form_Select by default
> removes all duplicate options. Is there anyway to get around this?
>
>
> Not really. Both the view helper as well as the form element require you
> to pass an associative array of key/value pairs to create the options --
> and PHP's associative arrays require unique keys. The only way to get
> around it would be to create a custom view helper or decorator that
> generates the markup.
>
>
>
--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论