Ejemplo n.º 1
0
 /**
  * @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/river/settings/layout')->bind('active', $this->active)->bind('settings_content', $this->settings_content)->bind('river_base_url', $this->river_base_url)->bind('river', $this->river);
 }
Ejemplo n.º 2
0
 /**
  * @return	void
  */
 public function before()
 {
     // Execute parent::before first
     parent::before();
     // Only account owners are alllowed here
     if (!$this->account->is_owner($this->visited_account->user->id) or $this->anonymous) {
         throw new HTTP_Exception_403();
     }
     // The main create template
     $this->template->content = View::factory('pages/river/create')->bind('account_path', $this->account_path)->bind('step', $this->step)->bind('step_content', $this->step_content)->bind('open_url', $this->open_url)->bind('view_url', $this->view_url);
     // Account Path
     $this->account_path = $this->user->account->account_path;
     // Open Url
     $this->open_url = '#';
     // View Url
     $this->view_url = '#';
 }