(on Friday, 12 December 2008, 05:24 PM +0100):
> > -- Emanuele Deserti <emanuele.deserti@netwing.it> wrote
> > (on Friday, 12 December 2008, 12:13 PM +0100):
> But I have another problem, as write before in another thread:
>
> How I can display the Description for a ComboBox (dijit) field? (ZF
> 1.7.0)
>
> This is my code:
>
> $this->addElement('ComboBox', 'test', array(
> 'label' => 'Test:',
> 'description' => 'Lorem ipsum dolor sit amet',
> 'required' => true,
> 'multiOptions' => array('alfa','bravo','charlie','delta')
> ));
>
> And I've no description printed at all...
>
> With this code:
>
> $this->test->addDecorator('Description');
>
> The description will be printed, but outside the <dd> tag
>
> And with this code:
>
> $this->test->setDecorators(array(
> 'ViewHelper',
Use 'DijitElement' instead of 'ViewHelper' here.
> 'Description',
> 'Errors',
> array('HtmlTag', array('tag' => 'dd')),
> array('Label', array('tag' => 'dt'))
> ));
>
> The description are printed inside the <dd> tags and all are fine, but
> the ComboBox show NO OPTIONS at all...
--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论