I have for example

Site/slug => which goes to controller users, action view

Or site/slug/profile => which goes to controller users, action profile

So if someone used "admin" for example

It would go to site/admin which obviously would get them nowhere.

I put my slug in front of the controller/action 

-----Original Message-----
From: JamesF [mailto:[email protected]] 
Sent: August-05-09 12:21 AM
To: CakePHP
Subject: Re: Slug name limitations


im not sure i understand why a slug should conflict with you functions.
/posts/index/id-slug should be ok.
can you explain a little more?

On Aug 4, 8:49 am, "Dave Maharaj :: WidePixels.com"
<[email protected]> wrote:
> How would you validate a user created slug so that it is not a name 
> used as a function in the app? (in my app they choose the slug they 
> want...not created by first + lastname)
>
> I obviuosly do not want a user choosing a slug "admin" or any 
> controller name || function?
> Since all of these are stored in the ACOS table is it best to query 
> the table against what the user submits?
>
> Dave


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to