View Single Post
  #1 (permalink)  
Old 04-20-2007, 02:46 PM
jap jap is offline
Junior Member
 
Join Date: Apr 2007
Posts: 23
Default Modular Layout (header, body, footer)

Hi,

I'm currently updating my ZF and using a different directory structure that's handier (the multiple controllers system. Like here:
Zend Framework

I'm currently using 2 standar templates that are located in:
application/views/scripts/header.phtml (and footer.phtml)

And my articles index.phtml is located here:
application/article/views/scripts/index.phtml

Now as you'll probably guess, my header.phtml and footer.phtml don't get loaded anymore.
I've got this code:
PHP Code:
<?php echo $this->render('header.phtml'); ?>
some interesting content
<?php echo $this->render('footer.phtml'); ?>
How do I make render() take the footer.phtml file from here: application/views/scripts/header.phtml ?

Sorry for my bad english, it's not my native language.
I've also tried this: Zend Framework

But what is the actual root of that command? :s

Thanks,
Jasper

Last edited by jap : 04-20-2007 at 02:50 PM.
Reply With Quote