CCaptcha

I searched the web for answer, and can’t find it…

I’m using my custom ajax form…

I want to use CCaptcha…

But I don’t know how to manually validate it…

I want something like


$captcha = Yii:app()->getCaptchaInstance();

return $capthca->validate("test");

To use manually… just cant figure out how to use CCaptchaaction or ccaptcha validator manually…

To simplify my question…

I just don’t understand how to create instance of CCaptchaAction to validate the user inputed captcha

this is the answer




$captcha = Yii::app()->getController()->createAction('captcha');



you should put it in the documentation!!!