• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
routing depth

I am working on an application that has a lot of location based data that needs to be organized. I created a location controller to be the jumping off point to drill down to this data. So a user can go to http://xyz.com/location and choose a state. That generates a new page at a url like http://xyz.com/location/Missouri where they can chose a city from the state Missouri. Then they would drill down to other categories based on the location(example: http://xyz.com/location/Missouri/Springfield/cars/bmw). This is where I realized routing doesn't scale they way I had thought.

$route['location/(:any)'] = "location/state/";
$route['location/(:any)/(:any)'] = "location/city";

(:any)/(:any) obviously doesn't work.
Is there a way to maintain the uri flow and continue to drill down into the granular data?

Messages In This Thread
routing depth - by El Forum - 02-13-2012, 01:00 PM
routing depth - by El Forum - 02-13-2012, 01:10 PM
routing depth - by El Forum - 02-13-2012, 01:42 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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