/models/r_approval_type.php
http://openbook2-0.googlecode.com/ · PHP · 17 lines · 12 code · 0 blank · 5 comment · 0 complexity · 5b4a02518f7b44c41cf9a629855af693 MD5 · raw file
- <?php
- class RApprovalType extends AppModel {
- var $name = 'RApprovalType';
- var $validate = array(
- 'name' => array(
- 'notempty' => array(
- 'rule' => array('notempty'),
- //'message' => 'Your custom message here',
- //'allowEmpty' => false,
- //'required' => false,
- //'last' => false, // Stop validation after this rule
- //'on' => 'create', // Limit validation to 'create' or 'update' operations
- ),
- ),
- );
- }
- ?>