
Untitled
By: a guest on
Aug 10th, 2012 | syntax:
None | size: 0.73 KB | hits: 8 | expires: Never
zend controller can't specify layout
class PagamentoController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
}
public function indexAction()
{
$model_pagamenti = new Model_Pagamento();
$this->_helper->layout->setLayout('/crudabstract/index.phtml');
$this->view->render('/crudabstract/index.phtml');
}
...
An error occurred
Application error
Exception information:
Message: script 'pagamento/index.phtml' not found in path (C:/www/www/abc/application/viewsscripts/)
Stack trace:
$this->_helper->viewRenderer('crudabstract/'.$this->_request->getActionName(), null, true);
application/views/script/pagamento/index.phtml