1
0
Fork 0
mirror of https://github.com/janickiy/yii2-nomer synced 2025-03-09 15:39:59 +00:00
yii2-nomer/modules/admin/controllers/CallsController.php
2020-02-05 06:34:26 +03:00

19 lines
478 B
PHP

<?php
namespace app\modules\admin\controllers;
use app\models\Call;
use yii\data\ActiveDataProvider;
class CallsController extends AdminController
{
public function actionIndex()
{
$dataProvider = new ActiveDataProvider([
'query' => Call::find()->with('organization')->where(['status' => 'dtmf-1']),
'sort' => ['defaultOrder' => ['id' => SORT_DESC]]
]);
return $this->render('index', compact('dataProvider'));
}
}