Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $this->navs = [CONTROLLER_NAME . '/index' => '文章管理', CONTROLLER_NAME . '/edit' => '新增文章'];
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     $this->navs = [CONTROLLER_NAME . '/model_list' => '模型管理', CONTROLLER_NAME . '/field_list' => '属性管理'];
 }