时间:2021-07-01 10:21:17 帮助过:3人阅读
index.html
UserModel.class.php
15||strlen($data)<5)
return FALSE;
return true;
}
function modelTest(){
echo '测试的跨模型操作,调用模型中的方法';
}
}
?>display();
}
function add(){
//经过自定义模型
$user=D('user');
if ($user->create()) {
if ($user->add()){
$this->success("注册成功");
}else{
$this->error($user->getError());
}
}else{
$this->error($user->getError());
}
}
}
?>