View Single Post
  #1 (permalink)  
Old 04-06-2008, 02:21 PM
sawatdee sawatdee is offline
Junior Member
 
Join Date: Mar 2008
Posts: 12
Default partial views and modular directory structures

I am using the modular directory structure where you simply call $front->addModuleDirectory ('../application/modules') and each module has its own directory under that (as shown in the documentation). However, I have partial views that are used by all of the modules. I didn't want to copy the partial views into every module, so I created a separate directory called partial_views at the same level as the modules directory and I call echo $this->partial ('../../../../partial_views/some_partial_view.phtml') from my view scripts. I am just wondering if anyone has come up with a more elegant way of doing this.
Reply With Quote