Created
December 30, 2010 20:54
-
-
Save jefflembeck/760288 to your computer and use it in GitHub Desktop.
validation_error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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