Call to a member function allowField() on null 错误总结
Call to a member function allowField() on null在空对象上调用allowField()没有该模型对象无法调用,需要创建相应的模型错误版本:if ($this->$model->allowField(true)->isUpdate($isUpdate)->save($data) !== false) {...