YII CAPTCHA Options

We can customize the YII CAPTCHA by using its options.

  1.  'captcha' => array(  
  2.   
  3.                 'class' => 'CCaptchaAction',  
  4.   
  5.                 'backColor' => 0xFFFFFF, // background color  
  6.   
  7.                 'foreColor' => 0x000000, // font color  
  8.   
  9.                 'transparent' => false, // background transparent  
  10.   
  11.                 'testLimit' => 1, // how many times should the same CAPTCHA be displayed  
  12.   
  13.                 'minLength' => 6, // min length of generated word  
  14.   
  15.                 'maxLength' => 7, // max length of generated word  
  16.   
  17.                 'width' => 100, // width of the CAPTCHA image  
  18.   
  19.                 'height' => 50, // height of the CAPTCHA image  
  20.   
  21.                 'offset' => -2, // space between characters  
  22.   
  23.                 'padding' => 4 // padding around the text  
  24.   
  25.             ),  

No comments:

Post a Comment