| 1234567891011121314151617 |
- <?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'))
- );
- }
- ?>
|