This commit is contained in:
srybkin committed 2019-12-23 17:34:09 +03:00
1 parent da78311a5c
commit 6db4e4252b
9 files changed
+226 -34

No files matched your search

+11 -1
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,
]);
}
}