You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
462 B

3 years ago
  1. <?php
  2. namespace Home\Model;
  3. use Think\Model;
  4. /**
  5. *
  6. *
  7. *
  8. */
  9. class BaseModel extends Model {
  10. // 自动验证 //默认,验证条件:0存在字段就进行验证 , 验证时间:1新增/编辑 数据时候验证
  11. protected $_validate = array ();
  12. // 自动填充 //默认 新增数据的时候处理
  13. protected $_auto = array ();
  14. // 只读字段,插入后不能通过save更新
  15. protected $readonlyField = array ();
  16. }