Esempio n. 1
0
 /**
  * This is the default 'index' action that is invoked
  * when an action is not explicitly requested by users.
  */
 public function actionIndex()
 {
     $news = new News('search');
     $news->status = News::STATUS_SHOW;
     $upcomingCompetitions = Competition::getUpcomingCompetitions();
     $this->render('index', array('news' => $news, 'upcomingCompetitions' => $upcomingCompetitions));
 }