controller.stub 399 B

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