完成文档主题

This commit is contained in:
augushong
2020-04-22 20:39:12 +08:00
parent 6c54f704ab
commit bc66a9d05d
6 changed files with 183 additions and 44 deletions

View File

@@ -57,6 +57,19 @@ class Post extends Common
return $this->fetch();
}
public function __documentsRead()
{
$category_id = $this->request->param('category_id',0);
$list_post = [];
if(!empty($category_id)){
$list_post = ModelPost::hasWhere('categorys',['category_id'=>$category_id])->order('sort desc')->select();
}
$this->assign('list_post',$list_post);
}
/**
* 显示编辑资源表单页.
*