View helpers are not autoloaded by the general autoloader. They are
autoloaded using Zend_Loader_PluginLoader, which has its own paths/prefixes.

You're correct in registering the helper prefix path with your view
instance.

If you're using Zend_Application, you can add this line to your
application.ini:

resources.view.helperPath.Default_View_Helper = APPLICATION_PATH
"/views/helpers"

--
Hector


2010/2/23 Dasn <[email protected]>

> On Tue, 23 Feb 2010 14:34:53 +0800, Ross <[email protected]> wrote:
>
>  If i place a file named, say Test.php in views/helpers/ how should I name
>> the class so that it is autoloaded? I tried Default_View_Helper_Test or
>> View_Helper_Test but it didn't work.
>>
>
> I think you should name it as "Zend_View_Helper_Test" and with a method
> named "test".
> HTH
> --
> Dasn
>
>

Reply via email to