Thx for your reply jack.

I have already tried this in my bootstrap file but it is NOT working. here
is the code ..

$view = new Zend_View();
$view->addHelperPath('application/views/helpers');

As I am using Zend_View_helper as prefix so i am not passing the 2nd
argument.

using the above code I am still not able to access any helper of the
"application" module in any other module.

any other suggestions ?


Ashish 


Jack Sleight wrote:
> 
> You need to add the helper path to the view object in bootstrap:
> 
> $view->addHelperPath('application/views/helpers/',
> 'My_View_Helper_Prefix');
> 
> See: 
> http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.paths
> 
> ashish.sharma wrote:
>> hi everbody, i have a query regarding helpers,i have helpers in my 
>> default module helpers folder i:e(in 
>> application/views/helpers/generateKey.php) now i have created new 
>> module and i want to use that helper in this module.how can i do this 
>> ,plz help me as its very urgent. thanx in advance,
>> ------------------------------------------------------------------------
>> View this message in context: Global access of models and helpers? 
>> 
>> Sent from the Zend Framework mailing list archive 
>>  at Nabble.com.
> 
> -- 
> Jack
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Global-access-of-models-and-helpers--tp14251508s16154p14252084.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to