Zend Server Question: Download Zend PDF

How to write a program to retrieve the view object within plugin?

Tweet Share WhatsApp

Answer:

- Zend uses the framework that allows easy retrieving of the object within the arbitrary code.

- It uses the action helper and other class methods to view the object within the plugin.

- The method ViewRenderer() is used by default in the zend framework to view and render the components.

$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer';
$view = $viewRenderer->view;

Download Zend PDF Read All 20 Zend Questions
Previous QuestionNext Question
Explain what is the function of action helper in Zend?Do you know what is the function Lucene?