Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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. }