4.0日常更新
This commit is contained in:
@@ -18,19 +18,16 @@ class Seo extends Admin{
|
||||
* @title 系统首页
|
||||
*/
|
||||
public function index(SeoRule $seo){
|
||||
//读取规则列表
|
||||
$map = array('status' => array('=', 0));
|
||||
if($this->request->isAjax()){
|
||||
//读取规则列表
|
||||
$map = array('status' => array('=', 0));
|
||||
|
||||
$list = $seo->where($map)->order('sort asc')->paginate(10, false, array(
|
||||
'query' => $this->request->param()
|
||||
));
|
||||
$res = $seo->where($map)->order('sort asc')->paginate($this->request->pageConfig);
|
||||
|
||||
$this->data['data'] = array(
|
||||
'list' => $list,
|
||||
'page' => $list->render()
|
||||
);
|
||||
|
||||
return $this->data;
|
||||
$this->data['data'] = $res->toArray();
|
||||
|
||||
return $this->data;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user