$query = User::findBy($params); | $query = User::findBy($params); | ||||
$dataProvider = new ActiveDataProvider([ | $dataProvider = new ActiveDataProvider([ | ||||
'query' => $query | |||||
'query' => $query, | |||||
'sort' => ['attributes' => ['nom','prenom']], | |||||
]); | ]); | ||||
$etablissement = Etablissement::find() | $etablissement = Etablissement::find() | ||||
->where(['id' => Yii::$app->user->identity->id_etablissement]) | ->where(['id' => Yii::$app->user->identity->id_etablissement]) | ||||
->one(); | ->one(); |