public function actionCompetitionHistory() { if ($this->user->id === '') { $this->redirect(array('/user/competitions')); } $model = new Competitions('search'); $model->unsetAttributes(); $this->render('competitionHistory', array('model' => $model)); }
public function actionCompetition() { $model = new Competitions('search'); $model->unsetAttributes(); $model->year = $this->sGet('year', 'current'); $model->region = $this->sGet('region', 'China'); $model->event = $this->sGet('event'); $model->name = $this->sGet('name', ''); $this->title = Yii::t('Competitions', 'Competitions'); $this->pageTitle = array(Yii::t('Competitions', 'Competitions')); $this->breadcrumbs = array('Results' => array('/results/index'), Yii::t('Competitions', 'Competitions')); $this->render('competition', array('model' => $model)); }