Welcome Guest, Not a member yet? Register   Sign In
Place Directory URLs: Route or Remap?
#1

[eluser]kirkaracha[/eluser]
I'm working on an application that lists places, primarily US cities with a few international locations.

I'd like the URLs to work like this:

/places/ <- intro text and search form
/places/ohio/ <- list of cities in Ohio
/places/ohio/cincinnati/ <- place info for Cincinnati
/places/england/<- list of cities in England
/places/england/london/ <- place info for London
/places/add/ <- form for adding places
/places/edit/1/ <- form for editing places
/places/delete/1/ <- form for deleting places

What's the best way to set this up?

I've started with routes but I'm having trouble figuring out how to handle having the second URL segment.

Could set up routes for add/edit/delete, then remap everything else though the index function?


Messages In This Thread
Place Directory URLs: Route or Remap? - by El Forum - 08-18-2009, 01:04 PM
Place Directory URLs: Route or Remap? - by El Forum - 08-19-2009, 02:07 AM
Place Directory URLs: Route or Remap? - by El Forum - 08-19-2009, 04:47 AM
Place Directory URLs: Route or Remap? - by El Forum - 08-19-2009, 06:08 AM
Place Directory URLs: Route or Remap? - by El Forum - 08-20-2009, 06:12 PM
Place Directory URLs: Route or Remap? - by El Forum - 08-20-2009, 06:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB