1
我有這樣的代碼的Zend控制器不能指定佈局
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');
}
...
,當我運行/ pagamento /指數
我得到這個錯誤
An error occurred
Application error
Exception information:
Message: script 'pagamento/index.phtml' not found in path (C:/www/www/abc/application/views\scripts/)
Stack trace:
爲什麼不會它的工作?它不應該是找「pagamento/index.phtml」,但對於「/crudabstract/index.phtml」
感謝