Quote:
Originally Posted by sawatdee
I am just wondering if anyone has come up with a more elegant way of doing this.
|
views in the default module will be loaded if the view can't be found in the current module.
Root
- controllers
- views
- modules
Using the above structure views placed in the second folder (views) could be loaded from any module.
To make it work you have to pass 'default', pointing to the controllers folder (folder1), to $controller->setControllerDirectory.
After that you can call $this->partial ('some_partial_view.phtml') without the path.
Hope this helps.