[SOLVED] Show user with id |
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){ And my model : PHP Code: public function get_account($id) 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 ![]()
Please see the CodeIgniter User Guide
SEE: Remapping Method Calls What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Just edit your topic and add [SOLVED} in the title.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |