How access action helper in view script?
$this->view->helper = $this->_h开发者_C百科elper->SomeHelper;
Any other ideas?
You can't ... or at least you can't do that "normally". You can do
$this->view->whatever = $this->_helper->flashMessager;
But it's not the right way... I guess. You can do it also using static call, which is little better.
$flashMessenger = Zend_Controller_Action_HelperBroker::getStaticHelper('flashMessenger');
In your Bootstrap.php make sure to register the view helper directory
$view->addHelperPath(APPLICATION_PATH .'/views/helpers', 'View_Helper');
$view->addHelperPath('ZendX/JQuery/View/Helper/','ZendX_JQuery_View_Helper');
then in your view just call
echo $this->someHelper();
精彩评论