生成模板报_message 未定义

有人遇到过吗
微信截图_20190706134000.png
已邀请:

单弦

赞同来自: xy82288478

之前遇到过 可能是你继承错类了。后台需要继承Admin

dolphinphp

赞同来自:

是不是提交表单的时候出现的?
因为提交表单用的是ajax方式,所以返回的时候,要用$this->success();或者$this->error();返回,如果用return ZBuilder::make('form')->fetch();返回或者return $this->fetch(),就会报错。
 
所以正确的方式应该判断下是否为post提交,是的话,就用$this->success();或者$this->error()返回。
 

要回复问题请先登录注册