Zend Server Question:
Download Job Interview Questions and Answers PDF
Please write down a program to show the execution of the application?
Answer:
- The execution of the program can be done by using the methods of Decorators.
- Decorators provide the methods like errors, htmltag, labels, etc. to help the developers to use it and execute their applications.
- The program is written like this:
$label->render($htmlTag->render($errors->render($viewHelper->render(''))))
<input name="hello" id="hello" type="text" value="" />
<div class="error"><ul>
<li>...</li>
</ul></div>
<dd>
<input name="hello" id="hello" type="text" value="" />
<div class="error"><ul>
<li>...</li>
</ul></div>
</dd>
- Decorators provide the methods like errors, htmltag, labels, etc. to help the developers to use it and execute their applications.
- The program is written like this:
$label->render($htmlTag->render($errors->render($viewHelper->render(''))))
<input name="hello" id="hello" type="text" value="" />
<div class="error"><ul>
<li>...</li>
</ul></div>
<dd>
<input name="hello" id="hello" type="text" value="" />
<div class="error"><ul>
<li>...</li>
</ul></div>
</dd>
Download Zend Interview Questions And Answers
PDF
Previous Question | Next Question |
Do you know what is the way in which the HTML can be used to form elements? | Explain what are the default methods provided by decorators? |