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 |
How to get all get data?
Does zend framework support php 4?
How to install zend framework on windows?
Features of mvc in zend framework?
How we can add custom view helpers to zend framework 2?
How can I detect if an optional file has been uploaded?
Explain authorization and authentication in zend framework?
How to add extra html (i.e link) in zend_form?
How we can redirect to another page from controller in zend framework?
How to connect to the mysql database in zend framework2?
Zend_cache provides a generic way to cache any data?
What are the methods used in decorator?