12345678910111213141516171819202122232425 |
- <?php
- namespace {%controllerNamespace%};
- use app\common\controller\Backend;
- /**
- * {%tableComment%}
- *
- */
- class {%controllerName%} extends Backend
- {
- /**
- * {%modelName%}模型对象
- * @var \{%modelNamespace%}\{%modelName%}
- */
- protected $model = null;
- {%controllerAttr%}
- public function initialize()
- {
- parent::initialize();
- $this->model = new \{%modelNamespace%}\{%modelName%};
- }
- {%methods%}
- }
|