Guest User

Untitled

a guest
Jun 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <?php
  2. class Sites_Bootstrap extends Zend_Application_Module_Bootstrap
  3. {
  4. public function initResourceLoader()
  5. {
  6. $loader = $this->getResourceLoader();
  7. $loader->addResourceType('helper', 'helpers', 'Helper');
  8. }
  9.  
  10. protected function _initHelpers()
  11. {
  12. Zend_Controller_Action_HelperBroker::addPath(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'helpers', 'Sites_Helper');
  13. }
  14.  
  15. // Using this method, the Action Controller still acts like it can't find
  16. // a helper by the name of 'search'...
  17. // protected function _initHelpers()
  18. // {
  19. // Zend_Controller_Action_HelperBroker::addHelper(new Sites_Helper_Search());
  20. // }
  21. }
Add Comment
Please, Sign In to add comment