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