TP5--页面跳转

//模拟登录

        // $admin = 0;
        // if($admin != 10){
        //     //页面跳转
        //     $this->success('登录失败','login/index');
        //     $this->error('登录失败');
        //     $this->redirect('login/index');

        //     /**
        //      * 三种跳转方式的区别
        //      * success跳转需要写跳转之后的url
        //      * error默认跳转上一个页面
        //      * redirect同原生php中header方法
        //      * success和redirect方法需要写url
        //      * 
        //      */
        // }
原文地址:https://www.cnblogs.com/1500418882qqcom/p/13665066.html