Blame view

vendor/yiisoft/yii2-gii/generators/module/default/controller.php 412 Bytes
70f4f18b   Administrator   first_commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  <?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;
  
  class DefaultController extends Controller
  {
      public function actionIndex()
      {
          return $this->render('index');
      }
  }