public function actionAdmin() { $model = new PcntContactType('search'); $scopes = $model->scopes(); if (isset($scopes[$this->scope])) { $model->{$this->scope}(); } $model->unsetAttributes(); if (isset($_GET['PcntContactType'])) { $model->attributes = $_GET['PcntContactType']; } $this->render('admin', array('model' => $model)); }