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