I don't know for sure in Symfony 1.2, but certainly in Symfony 1.1  
it's possible.

Eg....

     if (sfConfig::get('app_recaptcha_enabled')) {
       // validate that reCaptcha is correct
       $recaptchaValidator = new sfReCaptchaValidator($this- 
 >getContext());
       if (!$recaptchaValidator- 
 >execute($params['recaptcha_response_field'],  
$params['recaptcha_challenge_field'])) {
         $payload = array("errorMessage" => "Captcha incorrect");

         return $this->renderText(json_encode($payload));
       }
     }

On 6 Feb 2009, at 14:47, Roland Cruse wrote:

>
> Hi
>
> Anyone know if it is possible to use validators  without forms?
>
> A url describing its use, if it exists, would be excellent.
>
> Thanks for any help.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to