for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace modules\admin\controllers;
use yii\filters\AccessControl;
use yii\web\Controller;
use modules\main\Module;
/**
* Class DefaultController
* @package modules\admin\controllers
*/
class DefaultController extends Controller
{
* @inheritdoc
public function behaviors()
return [
'access' => [
'class' => AccessControl::class,
'rules' => [
[
'allow' => true,
'roles' => ['@'],
],
];
}
* Renders the index view for the module
* @return string
public function actionIndex()
return $this->render('index');