public function actionManage() { $model = new Osplan('search'); $model->unsetAttributes(); if (isset($_GET['Osplan'])) { $model->setAttributes($_GET['Osplan']); } $this->render('manage', array('model' => $model)); }