How to render view file from controller in zend framework?



How to render view file from controller in zend framework?..

Answer / Avinash Kumar Munda

To render a view file from a controller in the Zend Framework, you can use the render() method:

```php
class MyController extends Zend_Controller_Action
{
public function myAction()
{
$this->render('my-view.phtml');
}
}
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Zend Interview Questions

How to get all get data?

1 Answers  


Does zend framework support php 4?

1 Answers  


How to install zend framework on windows?

1 Answers  


Features of mvc in zend framework?

1 Answers  


How we can add custom view helpers to zend framework 2?

1 Answers  


How can I detect if an optional file has been uploaded?

1 Answers  


Explain authorization and authentication in zend framework?

1 Answers  


How to add extra html (i.e link) in zend_form?

1 Answers  


How we can redirect to another page from controller in zend framework?

1 Answers  


How to connect to the mysql database in zend framework2?

1 Answers  


Zend_cache provides a generic way to cache any data?

1 Answers  


What are the methods used in decorator?

1 Answers  


Categories