TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Advanced PHP Programming (http://www.talkphp.com/advanced-php-programming/)
-   -   ZF Custom Helpers Path (http://www.talkphp.com/advanced-php-programming/2715-zf-custom-helpers-path.html)

freenity 04-27-2008 05:39 PM

ZF Custom Helpers Path
 
To use my own helpers I have to add my path to the view object:

PHP Code:

$view->addHelperPath("../application/default/views/helpers"); 

But, the problem is that I have to do this in every action where I want to use my helper, and I can't find a way to set this path once, say in a bootstrap....

Is there any easy and fun ways of doing this? :) and not having to add the path in every action..

Thanks.


All times are GMT. The time now is 01:46 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0