This commit is contained in:
2019-12-23 17:34:09 +03:00
parent da78311a5c
commit 6db4e4252b
9 changed files with 226 additions and 34 deletions

View File

@@ -2,19 +2,29 @@
namespace dominion\cron\controllers;
use Yii;
use yii\web\Controller;
use dominion\cron\models\search\MoleTaskSearch;
/**
* Default controller for the `cron` module
*/
class DefaultController extends Controller
{
/**
* Renders the index view for the module
* @return string
*/
public function actionIndex()
{
return $this->render('index');
$searchModel = new MoleTaskSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
}