Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | public function actionIndex() |
||
42 | { |
||
43 | echo Table::widget([ |
||
44 | 'headers' => [ |
||
45 | 'ID', |
||
46 | 'Username', |
||
47 | 'Email', |
||
48 | 'Active', |
||
49 | 'Access Token', |
||
50 | ], |
||
51 | 'rows' => User::find() |
||
52 | ->select([ |
||
53 | 'id', |
||
54 | 'username', |
||
55 | 'email', |
||
56 | 'active', |
||
57 | 'access_token', |
||
58 | ]) |
||
59 | ->orderBy('id DESC') |
||
60 | ->asArray() |
||
61 | ->all(), |
||
62 | ]); |
||
64 | } |