$admin=0;

if($admin!=10){

//跳转页面

$this->success('登录失败','login/index');

$this->error('登录失败');

$this->redirect('login/index');

  三种跳转方式的区别
        //      * success跳转需要写跳转之后的url
        //      * error默认跳转上一个页面
        //      * redirect同原生php中header方法
        //      * success和redirect方法需要写url

相关文章:

  • 2021-10-15
  • 2021-09-04
猜你喜欢
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案