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

posted @ 2020-09-15 16:16  summer°  阅读(1055)  评论(0编辑  收藏  举报