Welcome Guest, Not a member yet? Register   Sign In
SEF URLs and database
#1

[eluser]Unknown[/eluser]
I have a database with many products.
Using routing I was able to get SEF URLs like 'http://site.com/view/saw'.

My problem is that product names are not unique ... so I must specify the id in the URL.

What is the best way to do it:

1. something like 'http://site.com/view/saw-1234' and then parse the id from the name?
2. put id in it's own segment 'http://site.com/view/1234/saw' and then check id and name?


Messages In This Thread
SEF URLs and database - by El Forum - 02-03-2008, 07:45 AM
SEF URLs and database - by El Forum - 02-03-2008, 09:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB