Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing action helpers from my models in zend

Can I access my action helpers from my models? What am avoiding is creating new models and calling the functions everytime I need some functionality.

Any tips?

like image 316
davykiash Avatar asked Apr 08 '10 15:04

davykiash


2 Answers

if helper not registered you can get as $helper = new Library_Helper_Helper();

like image 143
Tofeeq Avatar answered Sep 22 '22 05:09

Tofeeq


What about:

Zend_Controller_Action_HelperBroker::getStaticHelper('helpername')->doStuff();
like image 40
Danila Vershinin Avatar answered Sep 18 '22 05:09

Danila Vershinin