CI's url 2nd segment as paramater/id/whatever but not function call |
[eluser]Unknown[/eluser]
As mentioned in the title, is that possible? i just want to simply shorten my site url by 1 segment as in "somesite.com/board/board_name" not "some_site.com/board/show/board_name"
[eluser]Glazz[/eluser]
You can use the router to achieve that. Take a look http://ellislab.com/codeigniter/user-gui...uting.html
[eluser]CroNiX[/eluser]
Either routes or the _remap() function. Remap lets you change how the default controller/method/params are used in the controller. http://ellislab.com/codeigniter/user-gui...#remapping
[eluser]AoiKage[/eluser]
In the file application/config/routes.php, AFTER the default_controller and 404_override routes, add this: Code: $route['board/board_name'] = 'board/show/board_name'; |
Welcome Guest, Not a member yet? Register Sign In |