修复资源用mvc
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
namespace app\admin\model\Article;
|
||||
|
||||
use think\Model;
|
||||
|
||||
class ArticleCategory extends Model
|
||||
{
|
||||
// 设置当前模型对应的数据表名称(不含前缀)
|
||||
protected $name = 'article_category';
|
||||
|
||||
// 设置主键
|
||||
protected $pk = 'id';
|
||||
}
|
||||
Reference in New Issue
Block a user