Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 0.73 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. zend controller can't specify layout
  2. class PagamentoController extends Zend_Controller_Action
  3. {
  4.  
  5.     public function init()
  6.     {
  7.         /* Initialize action controller here */
  8.     }
  9.  
  10.     public function indexAction()
  11.     {
  12.         $model_pagamenti = new Model_Pagamento();
  13.         $this->_helper->layout->setLayout('/crudabstract/index.phtml');
  14.         $this->view->render('/crudabstract/index.phtml');
  15.     }
  16. ...
  17.        
  18. An error occurred
  19. Application error
  20. Exception information:
  21.  
  22. Message: script 'pagamento/index.phtml' not found in path (C:/www/www/abc/application/viewsscripts/)
  23. Stack trace:
  24.        
  25. $this->_helper->viewRenderer('crudabstract/'.$this->_request->getActionName(), null, true);
  26.        
  27. application/views/script/pagamento/index.phtml