Profile.php 261 B

1234567891011121314151617
  1. <?php
  2. namespace app\models;
  3. class Profile extends \lithium\data\Model {
  4. public static function __init()
  5. {
  6. Validator::add('ageism', function($birthday) {
  7. return true;
  8. } );
  9. }
  10. public $validates = array(
  11. 'birthday' => array(array('date'))
  12. );
  13. }
  14. ?>