Welcome Guest, Not a member yet? Register   Sign In
Permalink / Clean URL question
#2

[eluser]Michael Wales[/eluser]
In your form processor use a callback to validate the slug, query the database for uniqueness, and append as necessary. Then perform your insert.

I would throw all of this into the model or a validator file if you use/have developed a library to support that.


Messages In This Thread
Permalink / Clean URL question - by El Forum - 06-10-2008, 09:33 PM
Permalink / Clean URL question - by El Forum - 06-10-2008, 11:53 PM
Permalink / Clean URL question - by El Forum - 06-11-2008, 01:05 AM
Permalink / Clean URL question - by El Forum - 06-11-2008, 07:14 AM
Permalink / Clean URL question - by El Forum - 06-11-2008, 07:15 AM
Permalink / Clean URL question - by El Forum - 06-11-2008, 09:55 AM
Permalink / Clean URL question - by El Forum - 06-11-2008, 10:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB