我想將我的視圖頁面鏈接到另一個控制器。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