AdminComponentController.php
886 字节
<?php
/**
* 关于展会
* Author : xiaojie
* DateTime: 2018/11/28 16:49
*/
namespace app\portal\controller;
use app\portal\model\PageModel;
use app\portal\model\PortalCategoryModel;
use app\portal\model\ShowModel;
use cmf\controller\AdminBaseController;
class AdminComponentController extends AdminBaseController
{
//部件展示
public function component(){
$cate_id = 63;
$pageModel = new PageModel();
if($this->request->isPost()){
$param = $this->request->param();
$res = $pageModel->isUpdate(true)->save($param);
if($res){
$this->success('更新成功');
}
$this->error('请稍后重试');
}else{
$info = $pageModel->where('cate_id',$cate_id)->find();
$this->assign('info',$info);
return $this->fetch();
}
}
}