lib/controllers/admin/DashboardController.php
public function actionTasks()
    {
        $tasks = $this->params['tasks'] = $this->getTasks();
        if (isset($_GET['task'])) {
            Yii::$app->response->task = 'message';
            if (isset($tasks[$_GET['task']])) {
                $tasks[$_GET['task']]['run']();
            } else {
                Yii::$app->response->content = 'Unknown task!';
                Yii::$app->response->taskOptions = ['state' => 'danger'];
            }

            return;
        }

        Yii::$app->response->view = 'tasks';
    }
public function actionTasks()
    {
        $tasks = $this->params['tasks'] = $this->getTasks();
        if (isset($_GET['task'])) {
            Yii::$app->response->task = 'message';
            if (isset($tasks[$_GET['task']])) {
                $tasks[$_GET['task']]['run']();
            } else {
                Yii::$app->response->content = 'Unknown task!';
                Yii::$app->response->taskOptions = ['state' => 'danger'];
            }

            return;
        }

        Yii::$app->response->view = 'tasks';
    }
[[@doctodo method_description:actionTasks]].

@return [[@doctodo return_type:actionTasks]] [[@doctodo return_description:actionTasks]]