mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
增加通用开头功能
This commit is contained in:
@@ -5,6 +5,7 @@ declare(strict_types=1);
|
||||
namespace app\index\controller;
|
||||
|
||||
use app\model\Post as ModelPost;
|
||||
use app\model\PostCategory;
|
||||
use think\facade\Cache;
|
||||
use think\facade\View;
|
||||
use think\model\Relation;
|
||||
@@ -47,7 +48,10 @@ class Post extends Common
|
||||
|
||||
$model_post->save();
|
||||
|
||||
|
||||
|
||||
View::assign('post', $model_post);
|
||||
|
||||
|
||||
return View::fetch();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user