> There is a 'helpers' folder under application/views/ , I write a view
> helper extending Zend_View_Helper_Abstract, but I do not know how to
> use it?
>
> How to make application autoload it?
>
> --
> Location:
You need to put helper in the library folder for example.
But, before you should have a specific file structure in library folder
for your custom helpers.
Like:
class name My_View_Helper_Test
so, for this class name file structure should be:
library/My/View/Helper/
and file Test.php should contain this class.
Also in application/configs/application.ini you should add Your
namespace "My" for autoloading.
autoloadernamespaces[] = My
--
Yaroslav Vorozhko . Web Developer
web . http://pro100pro.com
twi . http://twitter.com/vorozhko
skp . yarik0083
没有评论:
发表评论