I am trying to create a validation function where I check the
User.slug field against a tables of banned words

So if a user tries to use a slug "profile" it will come back invalid

I have Restrictions table with all banned words which is not related
to any model on the site.

How do I do a query from the users model to check restrictions table?

Tried App::Import('Model', 'Restriction'); method but all i get is
error -> Trying to get property of non-object
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to