Zend\Form - Form Collections

6 important questions on Zend\Form - Form Collections

Does the required attribute of a Zend\Form make it required on server side?

No

Are validation groups on a collection basis or a element per collection basis?

On collection basis

Which 3 tasks does the Zend\Form File element do?

1. Sets form enctype to multipart/form-data
2. Creates the correct input type: Zend\InputFilter\FileInput
3. Prepends an upload file validator
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart

What must be added to controller processing for file uploads?

Merge of $_POST and $_FILES

Why should you use the Zend\Http\PhpEnvironment\Request instead of $_FILES directly when working with forms?

They have a different mapping

What 3 tasks does the fileprg() controller plugin preform?

1. Run the form's filters
2. Store the valid POST data in session
3. Set the succesfully validated to non-required

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo