$validates = array(
array('m_name','require','会议名称不能为空!',1),
);
$autos = array (
array('m_start','strtotime',3,'function'),
array('m_end','strtotime',3,'function'),
);
$Metting = M('metting');
$Metting -> validate($validates) -> auto($autos) -> create();
为什么$Metting->getError(),返回的消息是“非法数据对象!”,不是我定义的内容呢
后来我把验证放在Model中了,也是返回"非法数据对象!"
我用的是3.2版本
是不是我的POST中有不是表中数据的值呢,但是验证字段没问题的话,是可以正常提交的,验证字段没添就返回“非法数据对象”
最佳答案
