thinkphp5 跳转方式

Image Labels:{$img.label}
Labels:
{for start="0" end="$img.lab_num"} {/for}
{$labels[$i]}(x,y)(x,y)


// 文件上传提交
    public function submitbbox()
    {
        $save_string = '';
        $bbox = input('post.');
        $imgid = input('imgid');
        foreach($bbox as $key=>$value)
        {
            $save_string = $save_string.$key.":".$value.".";
        }
        $res = db('forlab')->update(['bbox' => $save_string,'id'=>$imgid]);
        if($res){
            $this->success('successful!!!',url('index'));//此处是成功跳转界面
        }else{
            $this->error('failed!!!');
        }
        //$text = $_POST['text'];
    }

你可能感兴趣的:(thinkphp5 跳转方式)