diff options
author | Michael Francis <edude03@gmail.com> | 2011-05-28 13:28:16 -0400 |
---|---|---|
committer | Michael Francis <edude03@gmail.com> | 2011-05-28 13:28:16 -0400 |
commit | 2389d66da849798f8d4ec5f10e3b07c11da49185 (patch) | |
tree | e22556d12982395b469a23420c662662e3e064cc /models/Profile.php | |
download | otakuhub-2389d66da849798f8d4ec5f10e3b07c11da49185.tar.xz |
Initial Commit
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 |