diff options
Diffstat (limited to 'models/Profile.php')
-rw-r--r-- | models/Profile.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/models/Profile.php b/models/Profile.php new file mode 100644 index 0000000..a85be6d --- /dev/null +++ b/models/Profile.php @@ -0,0 +1,17 @@ +<?php + +namespace app\models; + +class Profile extends \lithium\data\Model { + public static function __init() + { + Validator::add('ageism', function($birthday) { + return true; + } ); + } + public $validates = array( + 'birthday' => array(array('date')) + ); +} + +?>
\ No newline at end of file |