/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

  1. <?php
  2. class RApprovalType extends AppModel {
  3. var $name = 'RApprovalType';
  4. var $validate = array(
  5. 'name' => array(
  6. 'notempty' => array(
  7. 'rule' => array('notempty'),
  8. //'message' => 'Your custom message here',
  9. //'allowEmpty' => false,
  10. //'required' => false,
  11. //'last' => false, // Stop validation after this rule
  12. //'on' => 'create', // Limit validation to 'create' or 'update' operations
  13. ),
  14. ),
  15. );
  16. }
  17. ?>