Я пытаюсь связать свою страницу просмотра с другим контроллером.codeignign path issue
мой 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