Why is that when I use models validation, i can't use the cancelOnFail function?
$this->validate(new PresenceOf(
array(
"field" => "firstname",
'message' => 'Du skal skrive dit fornavn.',
'cancelOnFail' => true
)
));
I dont get any errors, it just doesn't work.. Is there any way I can make it work?