Cake Php Validation能否清除输入字段值
var $validate = array(
'name' => array(
'isUnique' => array (
'rule' => 'isUnique',
'message' => 'This Person name already exists.'
)
)
);
如果验证中仍然存在错误,我想清除name
字段值。是否可以通过 cake php 验证本身来做到这一点?