Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add the translation helper to all the modules instead of only fronted

  • Loading branch information...
commit edf3e682115caf26a8db0f41f6ef6181f6ad7b38 1 parent 64a782b
Christopher Valles authored
View
3  application/Bootstrap.php
@@ -211,6 +211,9 @@ protected function _initActionHelpers()
// Add the Flag and Flippers helper for the controllers. Example: $this->_helper->flagFlippers()
Zend_Controller_Action_HelperBroker::addHelper(new App_Controller_Action_Helper_FlagFlippers());
+
+ // Add the translator helper to all the modules
+ Zend_Controller_Action_HelperBroker::addHelper(new App_Controller_Action_Helper_T());
}
/**
View
9 application/modules/frontend/Bootstrap.php
@@ -45,13 +45,4 @@ protected function _initViewHelpers() {
$viewRenderer->view->addHelperPath('App/Frontend/View/Helper', 'App_Frontend_View_Helper');
}
-
- /**
- * Initializes the action helpers for the application
- *
- * @return void
- */
- protected function _initActionHelpers(){
- Zend_Controller_Action_HelperBroker::addHelper(new App_Controller_Action_Helper_T());
- }
}
Please sign in to comment.
Something went wrong with that request. Please try again.