Esempio n. 1
0
 /**
  * Lists all Messages models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new MessagesSearch();
     $searchModel->read = Yii::$app->request->get('read');
     $searchModel->user_id = Yii::$app->user->identity->id;
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
Esempio n. 2
0
 /**
  * Lists all Messages models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new MessagesSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }