Skip to content

Instantly share code, notes, and snippets.

@jefflembeck
Created December 30, 2010 20:54
Show Gist options
  • Save jefflembeck/760288 to your computer and use it in GitHub Desktop.
Save jefflembeck/760288 to your computer and use it in GitHub Desktop.
validation_error
WORKS
var $validate = array(
'id => '/[0-9]{1,}$/i',
'startDate' => VALID_NOT_EMPTY
);
DOES NOT WORK
var $validate = array(
'id => '/[0-9]{1,}$/i',
'startDate' => array( 'rule' => 'validDate', 'message' => 'Date not valid')
);
function validDate($check) {
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment