/** * The report page */ public function actionIndex() { $model = new ReportForm(); $model->unsetAttributes(); // clear any default values if (isset($_GET['ReportForm'])) { $model->attributes = $_GET['ReportForm']; } $this->render('index', array('model' => $model)); }