There is a controller:
public function page() { $this->load->model('page_model'); $id = $this->input->get('id'); $page = $this->page_model->getPage($id); $data['title'] = $page[0]->title; $this->load->view('page',$data); } There is a model:
class Page_model extends CI_Model { public function getPage($id=0) { $query = $this->db->get_where("pages",array("id" => $id)); $data = $query->result(); return $data; } } When you go http: //localhost/index.php/page/id=1 It gives the error URI you submitted has disallowed characters. What link can I view the page?