|
|||
|
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:
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. |
|
||||
|
do you have the view paths defined?
__________________
Zym Framework - A Zend Framework extension library w/ demo app SpotSec Blog: http://spotsec.com/blog |
|
||||
|
The code you provided so far looks to me as it should work, but what I am worried about is that you don't have the view paths defined or this is a different instance of the view object.
Does header.phtml or footer.pthml exist on the paths when you do a print_r($view->getScriptPaths());
__________________
Zym Framework - A Zend Framework extension library w/ demo app SpotSec Blog: http://spotsec.com/blog |
|
|||
|
Hmm I think I'm starting to understand the problem here but I unfourtunately i'm not working with the multiple controllers anymore for this project.
But I'm going to test it in my next project, I think the problem came from the fact that I was creating a new instance of View but I can't check that anymore. Thanks for your support, Jasper |
![]() |
| Thread Tools | |
| Display Modes | |
|
|