/** * Setup needed properties * */ protected function _setup() { global $site_name; $script = new Horde_Script_File_External($GLOBALS['host_base'] . '/js/jquery-1.4.4.min.js'); $GLOBALS['injector']->getInstance('Horde_PageOutput')->addScriptFile($script); // Set the view, with correct template path set by the binder $view = $GLOBALS['injector']->getInstance('HordeWeb_View'); $this->urlWriter = $view->urlWriter = $this->getUrlWriter(); $view->homeurl = $this->urlWriter->urlFor('home'); $view->feedurl = ''; $view->quote = HordeWeb_Utils::getQuote(); // This seems to be needed for some helpers to work correctly. $view->controller = $this; // @TODO: Refactor away the globals $view->host_base = $GLOBALS['host_base']; $this->setView($view); }