Are you using the default decorators? When I use my own decorators it's
showing the description. When I use de default it never shows the
description. So I don't know 'description' is default 'on'... But strange
thing in your case is that the description is shown with regular
text-fields.
Paul Reinheimer-3 wrote:
>
> Hi All,
>
> I've got a form, with a few elements, some, like text boxes work fine
>
> $this->addElement('text', 'comments', array(
> 'label' => 'Comments',
> 'description' => 'What did you do to the image? What
> tools did you use?',
> 'required' => true,
> 'validators' => array(
> array('validator' => 'StringLength', 'options' =>
> array(0, 254)))
> )
> );
>
> The description displays, I've got it looking all pretty.
>
> However when I work with a File, not so much, same syntax, no
> description shown
>
> $this->addElement('file', 'der', array(
> 'label' => 'Image
> File',
> 'description' =>
> 'Your resulting image. PNG please',
> 'required' => true,
> 'validators' => array(
>
> array
> ('validator' => 'Count', 'options' => 1),
>
> array
> ('validator' => 'Extension', 'options' => 'png')
> ),
> 'Destination' =>
> UPLOAD_PATH
> )
>
> );
>
>
>
>
> am I missing something obvious here? that seems like the sensible
> approach...
>
> paul
>
>
>
-----
visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/
--
View this message in context:
http://www.nabble.com/Zend_Form-Decorator-on-File-element-tp21843727p21849574.html
Sent from the Zend Framework mailing list archive at Nabble.com.