Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function actionIndex() |
||
13 | { |
||
14 | $queue = new RedisQueue(); |
||
15 | $query = Queue::find(); |
||
16 | $dataProvider = new ActiveDataProvider([ |
||
17 | 'query' => $query, |
||
18 | 'sort' => [ |
||
19 | 'defaultOrder' => [ |
||
20 | 'created_at' => SORT_DESC |
||
21 | ] |
||
22 | ] |
||
23 | ]); |
||
24 | return $this->render('index', ['queue' => $queue, 'dataProvider' => $dataProvider]); |
||
25 | } |
||
26 | |||
33 |