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