Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $captchaform = new Zend_Form();
- $captchaform->setAction('');
- $captchaform->setMethod('post');
- $captchaform->addElement('captcha', 'captcha', array(
- 'label' => 'Please enter the 5 letters displayed below:',
- 'required' => true,
- 'captcha' => array(
- 'captcha' => 'Image',
- 'wordLen' => 5,
- 'timeout' => 300,
- 'font' => APPLICATION_PATH . '/fonts/arial.ttf',
- 'imgDir' => APPLICATION_PATH . '/../public/img/captcha',
- 'imgUrl' => HOST . '/public/img/captcha'
- )
- ));
- $this->view->form = $captchaform;
Add Comment
Please, Sign In to add comment