You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
30
hyhproject/admin/controller/Sysconfigs.php
Executable file
30
hyhproject/admin/controller/Sysconfigs.php
Executable file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
namespace wstmart\admin\controller;
|
||||
use wstmart\admin\model\SysConfigs as M;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 商城配置控制器
|
||||
*/
|
||||
class Sysconfigs extends Base{
|
||||
|
||||
public function index(){
|
||||
$m = new M();
|
||||
$object = $m->getSysConfigs();
|
||||
$this->assign("object",$object);
|
||||
$list = model('admin/staffs')->listQuery();
|
||||
$this->assign("list",$list);
|
||||
$tm = Model('common/Table');
|
||||
$tm->setTable('data_configs');
|
||||
$dataConfigs = $tm->getList([],'*');
|
||||
$this->assign("dataConfigs",$dataConfigs);
|
||||
return $this->fetch("edit");
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
public function edit(){
|
||||
$m = new M();
|
||||
return $m->edit();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user