I read a tutorial, and I ZendFrameWork appeared that error below:
Quote:
|
Fatal error: Uncaught exception 'Zend_View_Exception' with message 'script 'header.phtml' not found in path (.\app\views\scripts\)' in C:\wamp\www\ZF-tutorial2\lib\Zend\View\Abstract.php:857 Stack trace: #0 C:\wamp\www\ZF-tutorial2\lib\Zend\View\Abstract.php(765): Zend_View_Abstract->_script('header.phtml') #1 C:\wamp\www\ZF-tutorial2\app\views\scripts\index\index.phtml(1): Zend_View_Abstract->render('header.phtml') #2 C:\wamp\www\ZF-tutorial2\lib\Zend\View.php(46): include('C:\wamp\www\ZF-...') #3 C:\wamp\www\ZF-tutorial2\lib\Zend\View\Abstract.php(769): Zend_View->_run('.\app\views\scr...') #4 C:\wamp\www\ZF-tutorial2\lib\Zend\Controller\Action\Helper\ViewRe nderer.php(742): Zend_View_Abstract->render('index/index.pht...') #5 C:\wamp\www\ZF-tutorial2\lib\Zend\Controller\Action\Helper\ViewRe nderer.php(763): Zend_Controller_Action_Helper_ViewRenderer->renderScript('index/index.pht...', NULL) #6 C:\wamp\www\ZF-tutorial2\lib\Zend\Controller\Action\Helper\ViewRe nderer.php(811): Zend_Controller_Action_Helper_ViewRenderer->rend in C:\wamp\www\ZF-tutorial2\lib\Zend\View\Abstract.php on line 857
|
When you call the template works index.phtml normal, with values go get him normally, but when using the ability to "include" the zendframework this message appears:
I mean, usually works well:
Quote:
|
<h1><?php echo $this->escape($this->title); ?></h1>
|
But thus leads to such exception:
Quote:
<?php echo $this->render('header.phtml'); ?>
<h1><?php echo $this->escape($this->title); ?></h1>
<?php echo $this->render('footer.phtml'); ?>
|
Atenciosamente,
Hélio Barbosa