chrisleekr / yii2-angular-boilerplate

Yii2 REST API + Angular 12 Boilerplate (Frontend/Backend)
https://yam-boilerplate.chrislee.kr/
MIT License
224 stars 101 forks source link

pageSizeLimit #35

Closed tsvetiligo closed 4 years ago

tsvetiligo commented 4 years ago

In UserSearch model: 'pageSizeLimit' => [10, 50, 100] [10, 50, 100] - wrong value and pageSizeLimit don't work at all, if I set per_page=0 ActiveDataProvider show ALL rows From Yii2 manual:

$pageSizeLimit public property The page size limits. The first array element stands for the minimal page size, and the second the maximal page size. If this is false, it means $pageSize should always return the value of $defaultPageSize. public array|false $pageSizeLimit = [1, 50]

chrisleekr commented 4 years ago

Happy to get PR from you. :)

chrisleekr commented 4 years ago

Fixed with https://github.com/chrisleekr/yii2-angular-boilerplate/pull/39