删除 Model类的rule属性 验证规则支持直接传入提示信息 采用 [field,rule,msg] 的方式定义 所有验证规则只在 值不为空的时候进行验证 除非使用require规则

This commit is contained in:
thinkphp
2016-03-21 13:47:54 +08:00
parent c32dc86763
commit 2cfcabde44
2 changed files with 65 additions and 45 deletions

View File

@@ -54,8 +54,6 @@ class Model
protected $scope = [];
// 字段映射定义
protected $map = [];
// 字段验证规则定义
protected $rule = [];
/**
* 架构函数