Time扩展添加教务管理表编写教务管理修改用户角色添加方式
This commit is contained in:
1 parent
8f7868665b
commit
8c1fbfd00a
56 files changed
+2564
-299
No files matched your search
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace app\teach\model;
|
||||
|
||||
use app\common\model\Base;
|
||||
|
||||
class Subject extends Base
|
||||
{
|
||||
// 分类获取器
|
||||
public function getcategoryAttr($value)
|
||||
{
|
||||
return db('category')
|
||||
->where('id',$value)
|
||||
->value('title');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user