/** * Manages all models. */ public function actionAdmin() { $model = new Diagnostic('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Diagnostic'])) { $model->attributes = $_GET['Diagnostic']; } if (isset($_GET['pageSize'])) { Yii::app()->user->setState('pageSize', (int) $_GET['pageSize']); unset($_GET['pageSize']); } $this->render('admin', array('model' => $model)); }