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.

23 lines
412B

  1. <?php
  2. /**
  3. * This is the template for generating a controller class within a module.
  4. */
  5. /* @var $this yii\web\View */
  6. /* @var $generator yii\gii\generators\module\Generator */
  7. echo "<?php\n";
  8. ?>
  9. namespace <?= $generator->getControllerNamespace() ?>;
  10. use yii\web\Controller;
  11. class DefaultController extends Controller
  12. {
  13. public function actionIndex()
  14. {
  15. return $this->render('index');
  16. }
  17. }