You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
- /**
- * This is the template for generating a controller class within a module.
- */
-
- /* @var $this yii\web\View */
- /* @var $generator yii\gii\generators\module\Generator */
-
- echo "<?php\n";
- ?>
-
- namespace <?= $generator->getControllerNamespace() ?>;
-
- use yii\web\Controller;
-
- /**
- * Default controller for the `<?= $generator->moduleID ?>` module
- */
- class DefaultController extends Controller
- {
- /**
- * Renders the index view for the module
- * @return string
- */
- public function actionIndex()
- {
- return $this->render('index');
- }
- }
|