|
|||
|
Hello while using view's render method, it gives the phtml files read and its ouput. How can i use a file with php or html extension as the template file, WHen i tried to render like this ($view->render('index.php')) ,, it gave me some error. Pls help me>
|
|
|||
|
It would be nice if you posted what the error was.
Without that, I would suggest you have set up your path for view? Code:
$view = new Zend_View();
$view->setScriptPath('/path/to/view/files');
$view->render('index.php');
It's all in the manual: Zend_View Controllers Scripts |
|
|||
|
Iam using layout utility of Zend 1.5. SO i have started MvcArchitecture().
SO in controller view helper renders the action view file. And the content is added to the template layout in Layouts folder. SO while i use the $this->view->render('index'), the index.phtml is embedded in to the layout file. WHen i tried render('index.phtml') it shows error as script not found in path. i Also set the script path for the views... ?? |
![]() |
| Thread Tools | |
| Display Modes | |
|
|