(newb) ask about routing |
[eluser]Unknown[/eluser]
hello im new to ci, please explain me all about routing url,please explain it detail with an example... and i want to ask i use this $route['default_controller'] = 'pages'; $route['(:any)'] = 'pages/view/$1'; but in browser i should always type this to call my page http://localhost/code/index.php/home 1.how to hide 'index.php'?! (i just want http://localhost/code/home) 2.how if i want to type anything behind (ex,"http://localhost/code/anything") it always redirect to my page (like url in no.1)?! thanks! |
Welcome Guest, Not a member yet? Register Sign In |