Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function run() |
||
30 | { |
||
31 | $user = Yii::$app->user->identity; |
||
32 | $dataProvider = new ActiveDataProvider([ |
||
33 | 'query' => $user->getAtOrganizationsOnly(), |
||
34 | 'pagination' => [ |
||
35 | 'pageParam' => 'organization-page', |
||
36 | 'defaltPageSize' => 20, |
||
37 | 'pageSizeParam' => 'organization-per-page', |
||
38 | ], |
||
39 | 'sort' => [ |
||
40 | 'sortParam' => 'organization-sort', |
||
41 | ], |
||
42 | ]); |
||
43 | return $this->controller->render('index', ['dataProvider' => $dataProvider]); |
||
44 | } |
||
45 | } |
||
46 |