Zend Server Question:
Download Questions PDF

Please write down a program to show the execution of the application?

Zend Interview Question
Zend Interview Question

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>

Download Zend Interview Questions And Answers PDF

Previous QuestionNext 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?