QueryParamAuth::className(), 'tokenParam' => 'token', ] ]); } public function actionIndex() { return new ActiveDataProvider([ 'query' => Notify::find()->where(['to_uid' => \Yii::$app->user->id]), 'sort' => [ 'defaultOrder' => [ 'id' => SORT_DESC ] ] ]); } }