public function actionTypeIndex() { $model = new ProductLinkType('search'); $model->unsetAttributes(); $model->attributes = Yii::app()->getRequest()->getParam('ProductLinkType'); $this->render('index_type', ['model' => $model]); }