How can I "manually" validate a CCaptcha verification code?
I’m not using Active Record nor CActiveForm, not even a form. I pick the user-entered validation code and I send it through ajax to a model’s method as a parameter. Inside this method how can I check if the code is correct?
I’m trying with:
if( CCaptchaAction->validate($userInput) )
but this is obviously wrong ( "PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR" )