public function before() { parent::before(); $this->languages = array(); $languages = Model_Languages::listAll(); foreach ($languages as $l) { $this->languages[] = $l['abbr']; } }
/** * All methods should be internal only, otherwise 404 */ public function before() { parent::before(); // Get the HTTP status code $action = $this->request->action(); if ($this->request->is_initial()) { // This controller happens to exist, but lets pretent it does not $this->request->action($action = 404); } else { if (!method_exists($this, 'action_' . $action)) { // Return headers only $this->request->action('empty'); } } // Set the HTTP status code $this->response->status($action); }
public function before() { parent::before(); $this->template->title = __('Songs'); $this->template->active = 'songs'; }
public function before() { parent::before(); $this->template->title = __('Audiobooks'); $this->template->active = 'audiobooks'; }
public function before() { parent::before(); $this->template->title = __('Movies'); $this->template->active = 'movies'; }
public function before() { parent::before(); $this->template->title = __('Home Page'); $this->template->active = 'home'; }