Current Zend View Path Helper
by Gabi SolomonMany times when i use Zend_View i have to include view files that are in the same directory, and i am forced to type in the same path over again. Which is and isnt so much work, but during development i often have to place those files in a different folder or rename one of the folders. In witch case i would be forced to change those path i gave in the view file.
This is why i wrote a small View_Helper to return the current view folder.
Unfortunately this will not work on a Zend framework out of the box, it will require some modifications to Zend_View_Abstract.
I have placed the code on ZF Snippets website, a project that i really like, and i would ask you to place any comments and suggestions for this helper on that webpage.
Cheers
Related Posts
-
Gabi Solomon
-
Matthew Weier O'Phinney
-
Gabi Solomon
-
Matthew Weier O'Phinney

