PVA – Archives

Sưu tầm những bài viết hay trên internet…

Zend Captcha is not shown – Zend 1.11.9 issue

From: http://stackoverflow.com/questions/6726987/zend-1-11-9-form-decorators-captcha. Thank to Koncz Szabolcs

Solution: add ‘decorators’ to the options of teh captcha and had to specify there all the decorators.

//Add a captcha    
$this->addElement('captcha', 'captcha',
 array(        
 'label'      => 'Please enter the 5 letters displayed below:',        
 'required'   => true,        
 'captcha'    => array(            
 'captcha' => 'Figlet',            
 'wordLen' => 5,            
 'timeout' => 300        
 ),         
 'decorators' => array('Captcha', 'Errors', 'Labels', etc)    
)); 
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.