mirror of https://gitee.com/karson/fastadmin.git
27 lines
420 B
Plaintext
27 lines
420 B
Plaintext
<?php
|
|
|
|
namespace {%controllerNamespace%};
|
|
|
|
use app\common\controller\Backend;
|
|
|
|
use think\Controller;
|
|
use think\Request;
|
|
|
|
/**
|
|
* {%tableComment%}
|
|
*
|
|
* @icon {%iconName%}
|
|
*/
|
|
class {%controllerName%} extends Backend
|
|
{
|
|
|
|
protected $model = null;
|
|
|
|
public function _initialize()
|
|
{
|
|
parent::_initialize();
|
|
$this->model = model('{%modelName%}');
|
|
}
|
|
{%controllerIndex%}
|
|
}
|