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/Y15965521559/p/13667270.html