3
0
Fork 0
yii-cron/controllers/DefaultController.php

31 lines
630 B
PHP
Raw Normal View History

2019-12-23 16:28:30 +03:00
<?php
namespace dominion\cron\controllers;
2019-12-23 17:34:09 +03:00
use Yii;
2019-12-23 16:28:30 +03:00
use yii\web\Controller;
2019-12-23 17:34:09 +03:00
use dominion\cron\models\search\MoleTaskSearch;
2019-12-23 16:28:30 +03:00
/**
* Default controller for the `cron` module
*/
class DefaultController extends Controller
{
2019-12-23 17:34:09 +03:00
2019-12-23 16:28:30 +03:00
/**
* Renders the index view for the module
* @return string
*/
public function actionIndex()
{
2019-12-23 17:34:09 +03:00
$searchModel = new MoleTaskSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
2019-12-23 16:28:30 +03:00
}
2019-12-23 17:34:09 +03:00
2019-12-23 16:28:30 +03:00
}