|
楼主 |
发表于 2009-8-19 21:48:46
|
显示全部楼层
2# Hex
恩,我还是用?a=的方法了。
在下面这个model中,我把当前页面链接作为参数传给控制器:
if(($this->session->userdata('username'))==""){
$currentPage=$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'];
$currentPage='login/index?current_page='.urlencode($currentPage);
$link=anchor('signup', '注册')." | ".anchor($currentPage, '登录');
return $link;
}
控制器接受的网址是http://localhost/bookiki/index.php/login/index?current_page=localhost/bookiki/index.php/bookiki/search%3FinputString%3DC%25E7%25A8%258B%25E5%25BA%258F%25E8%25AE%25BE%25E8%25AE%25A1%26search_button%3D%25E4%25B9%25B0%25E4%25B9%25A6
这种形式,
但是404 error,你觉得会是什么问题呢? |
|