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