我想将我的视图页面链接到另一个控制器。codeigniter路径问题
我test_view.php页
//this page address is base_url/controller1/function1
<a href='controller1/function2'> test </a>
如果我点击,页面地址为base_url/controller1/function1/controller1/function2
这不是我的愿望。
我控制器
//the first function1 is to show my test_view page
function function1(){
$this->load->view('test_view');
}
//I can't get to this function2 with the link I used
function function2(){
$this->load->view('funny');
}
任何人都可以帮我这个?非常感谢。
感谢。 +1全部。 – FlyingCat 2012-01-30 16:32:08