TP3.2.2的重定向问题

浏览:3226 发布日期:2017/01/09 分类:求助交流
public function login(){
if (!IS_POST) E('页面不存在');
$username = I('username');
$password = I('password','','md5');
$adm = D("adm")->where(array('username' => $username))->find();
if (!$adm||$adm['password']!=$password){
$this->error('账号或密码错误!');
}
session('username',$username);
$this->redirect('Admin/index');
}
重定向后页面刷新为Admin/index,但浏览器的地址栏显示为http://localhost/ThinkPHP/index.php/Home/Login/login
最佳答案
评论( 相关
后面还有条评论,点击查看>>