El Forum
12-06-2013, 09:15 AM
[eluser]huangxiao[/eluser]
HI , I need some help please, i don't understand why uri segment is not working....it shows Object not found.
this is my controller....
this is my menuview
when i click the gallery the url will be like this.
but it shows Object not found...can you help me please how do i fix this.
Thank you in advance.
HI , I need some help please, i don't understand why uri segment is not working....it shows Object not found.
this is my controller....
Code:
class Firstpage extends CI_Controller {
function index(){
$site['content']='home';
$this->load->view('includes/template',$site);
}
function pagesite(){
$p['page'] = $this->uri->segment(2);
$this->load->view('pageviews',$p);
}
}
this is my menuview
Code:
<li ><a href="<?php echo base_url();?>pagesite/home">Home</a></li>
<li><a href="<?php echo base_url();?>pagesite/gallery">Gallery</a></li>
when i click the gallery the url will be like this.
Quote:http://localhost/mytest/pagesite/gallery
but it shows Object not found...can you help me please how do i fix this.
Thank you in advance.