Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-25-2008, 06:56 PM
Junior Member
 
Join Date: Mar 2008
Posts: 1
Default Apprentice

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-21-2008, 06:19 PM
Junior Member
 
Join Date: Jun 2008
Posts: 5
Talking Grant each one a wish

  Osama Bin Laden, a Canadian, and President Bush were walking down the street when they saw a golden lamp. They rubbed it and a genie came out and said, "I will grant each one a wish that’s 3 together." The Canadian said, "I am a father and my son will be a farmer so I want the soil in Canada to be forever fertile." The genie said the magic words and the wish came true. Osama looked amazed so he wished for a wall around Afghanistan the genie said the magic words and again the wish came true. ..World Of Warcraft gold is WoW gold, President Bush said "Genie, tell me more about this wall," the genie said,”It’s 50 feet thick and 500 feet tall so nothing can get in and nothing can get out." President Bush said,”Wow! That’s a big bridge...Fill it with water!!!
__________________
World Of Warcraft gold
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-21-2008, 08:22 PM
Member
 
Join Date: Jun 2008
Location: Florida
Posts: 32
Default

What is your directory structure and what directory is header.phtml in?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:18 AM.