/** * Управление Шифрами. * * @return void */ public function actionIndex() { $model = new Cost('search'); $model->unsetAttributes(); // clear any default values if (Yii::app()->getRequest()->getParam('Cost') !== null) { $model->setAttributes(Yii::app()->getRequest()->getParam('Cost')); } $this->render('index', ['model' => $model]); }