Welcome Guest, Not a member yet? Register   Sign In
routes help
#9

[eluser]dippy[/eluser]
I have the following in my routes:
Code:
$route['services/:any'] = "services/section";
so i can goto a url like this: 'services/towing' and the php will pull that sections info into the page view.

and then i also want to have a url like the following: 'services/towing/company-name' - and have that route to another function in the services controller to pull that's company info.

can this be done?

when i tried to do this all i kept getting was the section.

so i added this for a temp. solution.
Code:
$route['search/:any'] = "services/search";

but id like to have it under services/section in the url.

any suggestions?


Messages In This Thread
routes help - by El Forum - 11-10-2008, 10:15 PM
routes help - by El Forum - 11-10-2008, 11:09 PM
routes help - by El Forum - 11-11-2008, 01:00 PM
routes help - by El Forum - 08-12-2009, 11:58 AM
routes help - by El Forum - 08-12-2009, 01:35 PM
routes help - by El Forum - 08-12-2009, 01:43 PM
routes help - by El Forum - 08-12-2009, 05:44 PM
routes help - by El Forum - 08-13-2009, 01:32 AM
routes help - by El Forum - 10-26-2009, 04:33 PM
routes help - by El Forum - 10-27-2009, 12:01 PM
routes help - by El Forum - 11-04-2009, 02:00 PM
routes help - by El Forum - 11-04-2009, 02:12 PM
routes help - by El Forum - 11-04-2009, 02:21 PM
routes help - by El Forum - 11-04-2009, 02:24 PM
routes help - by El Forum - 11-04-2009, 02:28 PM
routes help - by El Forum - 11-04-2009, 02:49 PM
routes help - by El Forum - 11-04-2009, 04:10 PM
routes help - by El Forum - 11-04-2009, 04:54 PM
routes help - by El Forum - 11-04-2009, 08:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB