$dataProvider = new ActiveDataProvider([
'query' => $query,
'pagination' => [
'pageSize' => 20
],
]);
//Этот код располагать ниже всех операций с $query
if(!Yii::$app->request->get('page')){
$dataProvider->pagination->page = ceil($dataProvider->getTotalCount() / $dataProvider->pagination->pageSize) - 1;
}
"dektrium/yii2-user": "dev-master",
и composer подтянет ветку "master" вашего fork."repositories": [
{
"type": "vcs",
"url": "https://github.com/Leopandro/yii2-user"
}
],
"require": {
"dektrium/yii2-user": "dev-master",
},
php composer.phar update dektrium/yii2-user