success没跳转的问题

浏览:485 发布日期:2015/02/14 分类:求助交流 关键字: thinkphp success
$user=new UserModel();
$username=I('post.username','notfind','htmlspecialchars');
if($user->where("username='{$username}'")->select()){
    $this->ajaxReturn($username,'用户名已存在',1);
}else{
    if ($user->create ()) {
    $res=$user->add();
    if($res){
            $this->success('success','__URL__/index');
        }
    }
}
在其他模块使用success是成功的
最佳答案
评论( 相关
后面还有条评论,点击查看>>