Welcome Guest, Not a member yet? Register   Sign In
CI's url 2nd segment as paramater/id/whatever but not function call
#1

[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"
#2

[eluser]Glazz[/eluser]
You can use the router to achieve that.
Take a look http://ellislab.com/codeigniter/user-gui...uting.html
#3

[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
#4

[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';




Theme © iAndrew 2016 - Forum software by © MyBB