controller.php 392 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 17 18

use yii\web\Controller;

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