Hello
I have another problem i want to show a user page like : monsite.com/user/1 but i can't i search for several hours on forum etc ...
My code :
It my user controller
PHP Code:
public function index($id = FALSE){
$data['user'] = $this->user_model->get_account($id);
$this->load->view('layout/header');
$this->load->view('user/user' , $data);
$this->load->view('layout/footer');
}
And my model :
PHP Code:
public function get_account($id)
{
$query = $this->db->where('guid',$id)->get('accounts');
return $query->row();
}
And i add this in my route :
PHP Code:
$route['user/(:num)'] = "user/user/$1";
and all time when i go to monsite.com/user/1 he say 404 not found
i have create a views in user/user .
Thanks for help