Skip to content

Instantly share code, notes, and snippets.

@maxmanders
Created July 7, 2012 20:19
Show Gist options
  • Save maxmanders/3067971 to your computer and use it in GitHub Desktop.
Save maxmanders/3067971 to your computer and use it in GitHub Desktop.
protected function _initActionHelpers()
{
$this->_initDoctrine();
Zend_Controller_Action_HelperBroker::addPath(
APPLICATION_PATH . '/controllers/helpers'
);
$registry = Zend_Registry::getInstance();
$entityManager = $registry['entitymanager'];
Zend_Controller_Action_HelperBroker::addHelper(
new Zend_Controller_Action_Helper_ServiceLocator($entityManager)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment