//模擬登錄 // $admin = 0; // if($admin != 10){ // //頁面跳轉 // $this->success('登錄失敗','login/index'); // $this->error('登錄失敗'); // $this->redirect('login/index'); // /** // * 三種跳轉方式的區別 // * success跳轉需要寫跳轉之后的url // * error默認跳轉上一個頁面 // * redirect同原生php中header方法 // * success和redirect方法需要寫url // * // */ // }