怎么跳转页面??
类似PHP的header,手册里的几个例子试了都没效果,不能转向。。。 为什么不直接用 PHP 函数header?难道 CI 不是用 PHP 写的?? CI里的redirect就是 redirect(),支持 header 和 refresh 两种。http://codeigniter.org.cn/user_guide/helpers/url_helper.html
Windows服务器的话 header redirect 可能会有兼容问题。 只是想跳转页面的话不建议你用header.
function gotoURL(){
echo "<script language='JavaScript'> location.replace('$url'); </script>";
exit;
}
} 不好意思多敲了个花括号。
页:
[1]