public function __construct($spec, $options = null) { $this->addPrefixPath('Monkeys_Captcha', 'Monkeys/Captcha/', 'captcha'); $options = array_merge($options, array('disableLoadDefaultDecorators' => true)); parent::__construct($spec, $options); $this->_decorator = new Monkeys_Form_Decorator_Composite(); $this->addDecorator($this->_decorator); }
public function __construct($spec, $options = null) { $view = Zend_Layout::getMvcInstance()->getView(); $options = array('captcha' => array('captcha' => 'Image', 'wordLen' => 5, 'timeout' => 300, 'fontsize' => 25, 'font' => APPLICATION_PATH . '/../public/fonts/Verdana.ttf', 'imgDir' => APPLICATION_PATH . '/../public/img/captcha/', 'imgUrl' => $view->baseUrl() . '/img/captcha/', 'ImgAlt' => 'Captcha', 'ImgAlign' => 'left', 'width' => '200', 'height' => '69', 'dotNoiseLevel' => 50, 'lineNoiseLevel' => 5)); parent::__construct($spec, $options); }