验证器代码,在上一页。这里直邮模型调用
<?php namespace appadminmodel; use appadminmodelAdminBase; class User extends AdminBase{ public function ajaxSave($data,$scene='edit'){ $validate = new appadminvalidateUser; $result = $validate->scene($scene)->check($data); if(!$result){ return $validate->getError(); }else{ // 继续操作 } } }
************************************************
Thinkphp高级交QQ流群:101766150
作者:狂奔的蜗牛
转载请注明出处
************************************************