请问像下面的视图渲染的写法,现在是不是不可以了?

浏览:2067 发布日期:2019/11/29 分类:ThinkPHP5专区 关键字: 视图渲染 fetch
public function setauth($id,$t,$poptype=''){
        $this->pageinit['R'] = $t;
        $this->assign('pageinit',$this->pageinit);
        
        $user = $this->model::get($id);
        $this->assign('user', $user);
        
        $sys_type = model('index/Codedefine')->get_codeid('T002',request()->module());
        $has_authpoint = get_authpoint('',$id);
        $authtree['authpoint'] = get_AuthTree('',$sys_type,$has_authpoint);
        $this->assign('AuthTreeTab', $authtree);
        $auth_list = $this->fetch('index/authlist');
        $this->assign('authlist', $auth_list);
        return $this->fetch();
    }
最佳答案
评论( 相关
后面还有条评论,点击查看>>