controller.stub 420 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace {%controllerNamespace%};
  3. use app\common\controller\Backend;
  4. use think\Controller;
  5. use think\Request;
  6. /**
  7. * {%tableComment%}
  8. *
  9. * @icon {%iconName%}
  10. */
  11. class {%controllerName%} extends Backend
  12. {
  13. protected $model = null;
  14. public function _initialize()
  15. {
  16. parent::_initialize();
  17. $this->model = model('{%modelName%}');
  18. }
  19. {%controllerIndex%}
  20. }