controller.php 412 Bytes
Newer Older
1 2 3 4
<?php
/**
 * This is the template for generating a controller class within a module.
 */
5 6 7 8

/* @var $this yii\web\View */
/* @var $generator yii\gii\generators\module\Generator */

9 10 11
echo "<?php\n";
?>

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

use yii\web\Controller;

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