This topic created in 3186 days ago, the information mentioned may be changed or developed.
thinkphp5 中模型就是表名 ,所以$this 时就是指本表,如果当前表名与本模型名称不符,allowField () 怎么调用
3 replies • 2018-03-02 00:35:10 +08:00
 |
|
模型中可以指定表名
|
 |
|
这种问题发到 thinkphp 论坛更合适
|
 |
|
protect $table=xxx; 相信如果你看了官方文档的话会知道的
|