controller.php 407 Bytes
Newer Older
1 2 3 4
<?php
/**
 * This is the template for generating a controller class within a module.
 *
Alexander Makarov committed
5
 * @var yii\web\View $this
6 7 8 9 10
 * @var yii\gii\generators\module\Generator $generator
 */
echo "<?php\n";
?>

Alexander Makarov committed
11
namespace <?= $generator->getControllerNamespace() ?>;
12 13 14 15 16

use yii\web\Controller;

class DefaultController extends Controller
{
17 18 19 20
    public function actionIndex()
    {
        return $this->render('index');
    }
21
}