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.

controller.php 570B

1234567891011121314151617181920212223242526272829
  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. /**
  12. * Default controller for the `<?= $generator->moduleID ?>` module
  13. */
  14. class DefaultController extends Controller
  15. {
  16. /**
  17. * Renders the index view for the module
  18. * @return string
  19. */
  20. public function actionIndex()
  21. {
  22. return $this->render('index');
  23. }
  24. }