thinkPHP create()自动验证函数报错
错误信息Notice:Undefinedindex:validateinD:\wamp\www\TP1.0\ThinkPHP\Library\Think\Model.cl...
错误信息
Notice: Undefined index: validate in D:\wamp\www\TP1.0\ThinkPHP\Library\Think\Model.class.php on line 1185
Notice: Undefined index: auto in D:\wamp\www\TP1.0\ThinkPHP\Library\Think\Model.class.php on line 1128
<?php
namespace Model;
use Think\Model;
class GoodsModel extends Model{
}
?>
控制器中
public function update(){
$_G=D('Goods');
$_G->create();
} 展开
Notice: Undefined index: validate in D:\wamp\www\TP1.0\ThinkPHP\Library\Think\Model.class.php on line 1185
Notice: Undefined index: auto in D:\wamp\www\TP1.0\ThinkPHP\Library\Think\Model.class.php on line 1128
<?php
namespace Model;
use Think\Model;
class GoodsModel extends Model{
}
?>
控制器中
public function update(){
$_G=D('Goods');
$_G->create();
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询