/** * @return void */ public function before() { // Execute parent::before first parent::before(); // Only owners allowed here if (!$this->owner) { throw new HTTP_Exception_403(); } $this->template->content = View::factory('pages/bucket/settings/layout')->bind('active', $this->active)->bind('settings_content', $this->settings_content)->bind('bucket_base_url', $this->bucket_base_url)->bind('bucket', $this->bucket); }
/** * @return void */ public function before() { // Execute parent::before first parent::before(); // Only owners allowed here if (!$this->owner) { throw new HTTP_Exception_403(); } $this->template->header->title = $this->bucket['name'] . ' ' . __("Settings"); $this->template->header->js .= HTML::script('themes/default/media/js/collaborators.js'); $this->template->content = View::factory('pages/bucket/settings/layout')->bind('active', $this->active)->bind('settings_content', $this->settings_content)->bind('bucket_base_url', $this->bucket_base_url)->bind('bucket', $this->bucket); $this->template->content->nav = $this->get_nav(); }
/** * @return void */ public function before() { // Execute parent::before first parent::before(); $this->template->header->title = $this->page_title . ' | ' . __('Discussion'); }