public function __construct() { parent::__construct(); $nls = [CONTROLLER_NAME . '/index' => '查看列表']; $mls = D('Model')->get_models() ?: []; foreach ($mls as $k => $v) { $nls[CONTROLLER_NAME . '/edit?model_id=' . $k] = '添加' . $v['name']; } $this->navs = $nls; }
public function __construct() { parent::__construct(); $this->navs = [CONTROLLER_NAME . '/index' => '文章管理', CONTROLLER_NAME . '/edit' => '新增文章']; }
public function __construct() { parent::__construct(); $this->navs = [CONTROLLER_NAME . '/model_list' => '模型管理', CONTROLLER_NAME . '/field_list' => '属性管理']; }