Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Zend Server Interview Question:
Do you know what is the way in which the HTML can be used to form elements?
Submitted by: Administrator- 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>');
Submitted by: Administrator
- 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>');
Submitted by: Administrator
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.