I've got a Zend-Framework application. I'm using the module-structure which Zend_Controller_Front
provides. Here is a small excerpt from my directory-structure (only the important parts for this question):
root-directory
- modules
- blog
- views
- scripts
- index_index.phtml
- views
- pagination_control.phtml
As you can see I've got view-scripts that are specific to a module/controller/action. These views are located in the corresponding path (in this case like modules/blog/views
. I've also got a more general view-directory located in the root-direcetory of my application.
What I am doing now is to call the PaginationControl
-ViewHelper in modules/blog/views/scripts/index_index.phtml
. This View-Helper however renders a partial-view, as you know. The ViewHelper tries to locate the partial-view within the same directory (meaning modules/blog/views/scripts
. Since I want to use the same view-partial-script (pagination_control.phtml
) in different modules I want to make this view-partial accessable from each module. So I want to put that file in the general views
-folder in the root-directory.
However this doesn't work. The ViewHelper always looks for the view-script in the corresponding module-folder.
Anyone can help to make it accessable from my general views
-directory?