Chapter 7: Ok, so I did due diligence and searched the forum for fixes, found the ones for date but 'content' was still throwing errors. I ended up with this code that seems to work:
var $validate = array(
'name'=>array(
'alphaNumeric'=>array(
'rule'=>'alphaNumeric',
'required'=>true,
'message'=>'The title must be alphanumeric'
),
'maxLength'=>array(
'rule'=>array('maxLength',80),
'message'=>'The title must not exceed 80 characters'
)
),
'date' => array(
'rule' => array('custom', '/^((?:2|1)\\d{3}(?:-|\\/)(?:(?:0[1-9])|(?:1[0-2]))(?:-|\\/)(?:(?:0[1-9])|(?:[1-2][0-9])|(?:3[0-1]))(?:T|\\s)(?:(?:[0-1][0-9])|(?:2[0-3])):(?:[0-5][0-9]):(?:[0-5][0-9]))$/'),
'required' => true,
'message' => 'You must supply a valid date'
),
'content'=>array(
'rule' => array(
'required'=>true
),
)
);
I hope it saves someone else the time spent digging for an answer. :)