Ejemplo n.º 1
0
 /**
  * Управление блогами.
  *
  * @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));
 }
Ejemplo n.º 2
0
 /**
  * Управление блогами.
  *
  * @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]);
 }