Zend Framework - modular layout questions

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

I thought I had all this working :( I can now get it to render the right view in the right module, but when I do something like the following in my template, it can't find the correct file :(

Code: Select all

<?php echo $this->render('header.phtml'); ?> <!-- finds this because it is in views/common/_elements -->
<?php echo $this->render('menu.phtml'); ?> <!-- cant find this because it is in views/default/vendors -->

<h1>This is a template!</h1>
<p>Yay a template! w00t! I love being a template!</p>

<?php echo $this->render('footer.phtml'); ?> <!-- finds this because it is in views/common/_elements -->
(see my directory structure above)

So do I have to put it in common/default or something?
Post Reply