Studyon Minte9.com
ZF 1.0




Captcha



    $element = new Zend_Form_Element_Captcha('captcha',
	array(
	'label' => "Introdu codul alaturat",
	'captcha' => array(
		    'captcha' => 'Image',
		    'wordLen' => 5,
		    'height'  => 50,
		    'width'   => 100,
		    'timeout' => 300,
		    '_fsize' => 20,
		    '_dotNoiseLevel' => 0,
		    '_lineNoiseLevel' => 0,
		    'font' => './lib/captcha/ttf/Vera.ttf',
		    'imgdir'=>  './lib/captcha/tmp/',
		    'imgurl' => '/lib/captcha/tmp/'
		    ),
	)
    );
$element->setRequired(true);
$element->setAttrib('class', 'cod');
$subForm->addElement($element);