ITYM 'allowEmpty' => true, but yes that works, thanks!
On Feb 9, 10:35 am, Jeremy Burns | Class Outfit
wrote:
> Required just indicates whether the field must be present when validating. So
> if it's empty, it's not there, and as it's not required the validation
> passes. Try setting 'allowEmpt
Required just indicates whether the field must be present when validating. So
if it's empty, it's not there, and as it's not required the validation passes.
Try setting 'allowEmpty' => false instead.
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 9 Feb 2012, at 15:22:25, Benno wrote:
Hi all,
I've searched the archives and open tickets, but perhaps I've missed
something obvious...
I'm using Cake 2.0.5, and I've got a model with the following:
public $validate = array(
'notify_on_provision' => array(
'rule' => 'email',
'required' => false
),
[various ot