Exemple #1
0
 public function before()
 {
     parent::before();
     $this->languages = array();
     $languages = Model_Languages::listAll();
     foreach ($languages as $l) {
         $this->languages[] = $l['abbr'];
     }
 }
Exemple #2
0
 /**
  * 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);
 }
Exemple #3
0
 public function before()
 {
     parent::before();
     $this->template->title = __('Songs');
     $this->template->active = 'songs';
 }
Exemple #4
0
 public function before()
 {
     parent::before();
     $this->template->title = __('Audiobooks');
     $this->template->active = 'audiobooks';
 }
Exemple #5
0
 public function before()
 {
     parent::before();
     $this->template->title = __('Movies');
     $this->template->active = 'movies';
 }
Exemple #6
0
 public function before()
 {
     parent::before();
     $this->template->title = __('Home Page');
     $this->template->active = 'home';
 }