/** * 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]); }
/** * 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]); }