Skip to end of metadata
Go to start of metadata

How can I customize the appearance of forms generated by Zend_Form?

How can I add extra HTML (such as a link) to my form element?

Why can't Zend_Form render my File element without errors?

How can I detect if an optional file has been uploaded?

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Oct 27, 2009

    Anonymous

    with regards to using 'File' and viewscript; how do you use them together?

    doing this:

    $file->setDecorators(array(
    array(
    'ViewScript',
    array(
    'viewScript' => 'input.phtml',
    'class' => 'form element'
    )
    ),
    array('File'),
    ))

    results in 2 file upload boxes?

  2. Jul 26, 2010

    Anonymous

    at point 2: "How can I add extra HTML (such as a link) to my form element?"

    it should read

    $element->setDecorators(array(
    ...
    array('Description', array('escape' => false)),
    ...
    ));

    instead of

    $element->setDecorators(array(
    ...
    array('Description', array('escape', false)),
    ...
    ));

  3. May 24, 2011

    Anonymous



    with regards to using 'File' and viewscript; Medion Akku how do you use them together?