Perhaps I’m doing something wrong (I’m totally newbie in yii2). In my action I instantiate a ModelSearch and I invoke search method. This method (inside model) returns a data provider. Of course I can modify this data provider at controller level and call setPagination mehod, but I think is a better solution to do this at view level. Is there any way to achieve this using GridView options?