2009年1月26日星期一

[fw-core] My_Captcha_Image

Hi,
 
I would like to extend the Image adapter for the Captcha element.
I have done so and placed it in My/Captcha/Image.php
 
My question...
I have no clue how to use my adapter for the captcha.
 
This is how I define and add the element
$captcha = new Zend_Form_Element_Captcha('captcha', array('captcha' => array('captcha' => 'Image', 'wordLen' => 4)));
$this->addElement($captcha);
 
All help is appreciated.
 
-R
 
P.S.
- I have a canventional setup
- All my forms extend My_Form

没有评论: