Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Sites_Bootstrap extends Zend_Application_Module_Bootstrap
- {
- public function initResourceLoader()
- {
- $loader = $this->getResourceLoader();
- $loader->addResourceType('helper', 'helpers', 'Helper');
- }
- protected function _initHelpers()
- {
- Zend_Controller_Action_HelperBroker::addPath(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'helpers', 'Sites_Helper');
- }
- // Using this method, the Action Controller still acts like it can't find
- // a helper by the name of 'search'...
- // protected function _initHelpers()
- // {
- // Zend_Controller_Action_HelperBroker::addHelper(new Sites_Helper_Search());
- // }
- }
Add Comment
Please, Sign In to add comment