mirror of
https://gitee.com/ulthon/layui-ul.git
synced 2026-09-02 14:11:39 +08:00
完成文档分类
This commit is contained in:
@@ -19,7 +19,8 @@ class Post extends Common
|
||||
{
|
||||
parent::initialize();
|
||||
|
||||
ModelPost::quickSelect(true);
|
||||
$list_post = ModelPost::quickSelect(true);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -118,7 +119,9 @@ class Post extends Common
|
||||
//
|
||||
|
||||
$model_post = ModelPost::find($id);
|
||||
$list_category = Category::where('status', 1)->order('sort asc')->select();
|
||||
|
||||
View::assign('list_category', $list_category);
|
||||
|
||||
View::assign('post', $model_post);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user