• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(newb) ask about routing

#1
[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!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.