Skip to main content

Posts

Showing posts from September, 2017

Form Zend Framework

Form Zend Framework primarily as a bridge between your domain models and the View Layer. Zend/form- This is  used to bind/bridge b/w data model to view layer  and provide generic api to build view form with element also provide  interface to build custom  form  element Form have following  following objects  inputFliter -This provide small number of method to filter data   Example        $inputFilter = new InputFilter(); Elements  - It simply create html form element & Zend\Form\Element is a base class for all specialized elements  Example.  $name = new Element('name'); $name->setLabel('Your name'); $name->setAttributes( array( 'type'  => 'text', 'class' => 'name',     'size'  => '30', )); Zend\InputFilter\InputProviderInterface interface will be used to create custom input type  and custom element need  to add in the plug