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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-31-2007, 03:22 AM
Member
 
Join Date: Nov 2007
Posts: 33
Question 'Partial' not found in path'

Hi, how does one add a partial to the path? BTW, I have two partials on the page that are located in a different view (i.e. update). For example,

PHP Code:
 <?php echo $this->partial"update/_animal.phtml", array( 'animal' => $this->animal )); ?>

<?php echo $this->partialLoop"update/_recent.phtml"$this->recents ); ?>
However, I'm getting the following error message:

Fatal error: Uncaught exception 'Zend_View_Exception' with message 'helper 'Partial' not found in path'

I would like to ideally add whatever needs to be added to the boostrapper (i.e. index.php).

Thanks in advance,

-Conrad
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 01:10 AM
Junior Member
 
Join Date: Feb 2008
Posts: 2
Default

I am having the same problem with my Zend_View.
Pretty stock standard setup, there must be something basic I am missing..

My controller:
PHP Code:
class IndexController extends Zend_Controller_Action {
    protected 
$_flashMessenger null;
    
    public function 
init() {        
        
$this->_redirector $this->_helper->getHelper 'Redirector' );
        
$this->_flashMessenger $this->_helper->getHelper 'FlashMessenger' );       
        
$this->initView();        
        
// $this->view->addHelperPath('../views/scripts/index');
    
}
    
/**
     * The default action - show the home page
     */
    
public function indexAction() {
        
//$this->_helper->viewRenderer->setNoRender (); 
                
        
$this->view->books 'Test data';
    
    }

And in the template:
PHP Code:
<?php echo $this->partial('index/partial.phtml', array('from' => 'Team Framework','subject' => 'view partials')); ?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 04:09 AM
Junior Member
 
Join Date: Feb 2008
Posts: 2
Default

Ended up solving it. Seems that Zend have already updated their manual to show 1.5PR library examples. I wish they made the note about it a LOT more obvious, would have saved me 1.5 hours trying to figure out what was going wrong.
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 09:44 PM.