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.

30 satır
618B

  1. <?php
  2. /**
  3. * This is the template for generating a module class file.
  4. */
  5. /* @var $this yii\web\View */
  6. /* @var $generator yii\gii\generators\module\Generator */
  7. $className = $generator->moduleClass;
  8. $pos = strrpos($className, '\\');
  9. $ns = ltrim(substr($className, 0, $pos), '\\');
  10. $className = substr($className, $pos + 1);
  11. echo "<?php\n";
  12. ?>
  13. namespace <?= $ns ?>;
  14. class <?= $className ?> extends \yii\base\Module
  15. {
  16. public $controllerNamespace = '<?= $generator->getControllerNamespace() ?>';
  17. public function init()
  18. {
  19. parent::init();
  20. // custom initialization code goes here
  21. }
  22. }