Zend Server Question:

Download Job Interview Questions and Answers PDF

How to write a program to show the function of action helper?

Zend Interview Question
Zend Interview Question

Answer:

- Action helper is used to create the application and instantiate the object of it using the Zend_View.

- The object is used and stored using the ViewRenderer’s property that creates an instance and provides more options.

- It includes the dispatch process before any action is being dispatched from the view and the example code is given as:

if (!isset($viewRenderer->view)) {
$viewRenderer->initView();
}
$view = $viewRenderer->view;

Download Zend Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me what is the function of model in MVC architecture?Explain what is the function of action helper in Zend?