Welcome Guest, Not a member yet? Register   Sign In
Simple routing question. Please help.
#4

[eluser]darrentaytay[/eluser]
Normally it's wise to use some sort of prefix for the type of URL to avoid clashing, so if you are editing entries:

Code:
$route['entry/edit/(:any)/(:any)'] = "entry_controller/edit_method/$1/$2";

As expected, if you just use the code from my previous example, any call to a URL which has 2 parameters it will be directed to that method unless you add more routes.

I'd recommend, if you haven't done so already, reading the User Guide:

http://ellislab.com/codeigniter/user-gui...uting.html


Messages In This Thread
Simple routing question. Please help. - by El Forum - 06-13-2011, 01:12 AM
Simple routing question. Please help. - by El Forum - 06-13-2011, 01:47 AM
Simple routing question. Please help. - by El Forum - 06-13-2011, 02:13 AM
Simple routing question. Please help. - by El Forum - 06-13-2011, 11:44 AM
Simple routing question. Please help. - by El Forum - 06-14-2011, 01:39 AM
Simple routing question. Please help. - by El Forum - 06-14-2011, 01:48 AM
Simple routing question. Please help. - by El Forum - 06-14-2011, 02:14 AM
Simple routing question. Please help. - by El Forum - 06-14-2011, 02:33 AM
Simple routing question. Please help. - by El Forum - 06-14-2011, 02:42 AM
Simple routing question. Please help. - by El Forum - 06-14-2011, 03:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB