View Single Post
  #1 (permalink)  
Old 07-14-2008, 07:55 PM
dele454's Avatar
dele454 dele454 is offline
Member
 
Join Date: Jun 2008
Posts: 48
Default Custom View Helpers

I am having this issue of ZF locating where my custom View Helper classes are. The only way my view helpers work is when I include them in the Zend_View_Helper path - which ideally, I don’t want to do.

So I have a plugin folder in my library folder (apps>lib>Addon)

In this folder I have my folders as required (View & Helper folders)

For the view helper class I have done what is required ( TitleCasing the helper class name, prefixing the class name with the plugin folder path to the view helper folder & camelCasing the helper function name)

In my bootstrap included a path to where my view helper folder. And In my view script I made a function call to this helper function but on preview my page just appears blank.  It is only displays when I move the view helper class to Zend_View_Helper as mentioned above!

I am having similar problems with adding custom plugins too. ZF cant seem to resolve the path in these two cases. I have tried all sorts.

I came across this article( Zend_View helpers in include path) and I just want to know if you will recommend the route this guy suggests on solving this and if this behavior of the Zend_View is still true with the v1.5?


How can i get Zend_View to see my custom folders??
Reply With Quote