making custom validate rule (NotEqualTo)

2008-09-29 Thread mig_akira
Hello! I'm new to cakePHP and I would like to make a custom validate rule. I made a page where there is a form with fields such as "name", "adress", etc. In the field "City" there is only ONE city that is not allowed to apply - say, "Forbidden City&quo

Custom Validate for search - security question

2007-11-25 Thread cronet
Hi, I'm performing a search the following way function searchform() { // Displays searchform } function search_redirect() { // redirect to get values $this->redirect("/results/".$this->data['Search']['searchvalue1']."/". $this->data['Search']['searchvalue2']."/".$this->d

Custom Validate

2007-02-21 Thread Petry
Hi All Why i Create a custom function for valide only uploaded imagem files? In cake/libs/validators.php is possible create a custom validade, but only using regular expressions, right? I'd like to create a custom validade for example which these code: thanks! Petry --~--~-~--~--

Re: Custom Validate

2007-02-21 Thread Grant Cox
I haven't really looked at the new Validation options, but the traditional way is to do this in your model beforeValidate callback. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this g

Re: Custom Validate

2007-02-21 Thread Seb
Hey, You might want to give this article from the bakery a look; http://bakery.cakephp.org/articles/view/55 I've been using it and extending it for months now and it works like a charm! Hope this helps! Seb. Grant Cox wrote: > I haven't really looked at the new Validation options, but the > t