Zend Server Question: Download Questions PDF
Do you know what is the way in which the HTML can be used to form elements?
Answer:
- The form elements can be customized using the decorators and using the Zend_Form for the rendering of the output.
- The description decorator can be used to have an instance running that allow the HTML to create the form elements.
- The turning of escape characters is required for the output of the decorator and it can be represented as shown below:
$element->setDecorators(array(
array('ViewHelper'),
array('Description', array('escape', false)),
array('Errors'),
array('HtmlTag', array('tag' => 'dd')),
array('Label', array('tag' => 'dt')),
));
- The element can be set to use the description by adding the extra HTML to this and it can be done using this:
$element->setDescription('<strong>Hello World</strong>');
- The description decorator can be used to have an instance running that allow the HTML to create the form elements.
- The turning of escape characters is required for the output of the decorator and it can be represented as shown below:
$element->setDecorators(array(
array('ViewHelper'),
array('Description', array('escape', false)),
array('Errors'),
array('HtmlTag', array('tag' => 'dd')),
array('Label', array('tag' => 'dt')),
));
- The element can be set to use the description by adding the extra HTML to this and it can be done using this:
$element->setDescription('<strong>Hello World</strong>');
Download Zend Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain what is the procedure to see that the optional file is detected? | Please write down a program to show the execution of the application? |