How to print a group display individually from its content?

Answer

What you are looking for is the 'ViewScript' decorator. It allows you to form your html in any way you need. Here is a simple example of how it works:

The form, a simple search form:

<?php
classApplication_Form_SearchextendsZend_Form{publicfunction init(){// create new element
        $query = $this->createElement('text','query');// element options
        $query->setLabel('Search Keywords');
        $query->setAttribs(array('placeholder'=>'Query String','size'=>27,));// add the element to the form
        $this->addElement($query);//build submit button
        $submit = $this->createElement('submit','search');
        $submit->setLabel('Search Site');
        $this->addElement($submit);}}

All zend-framework Questions

Ask your interview questions on zend-framework

Write Your comment or Questions if you want the answers on zend-framework from zend-framework Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---