0

当我添加以下代码时,重新加载验证码工作正常

在 ZEND 表格中:

$captcha = $this->createElement('captcha', 'captcha', array(
'required' => true,
'captcha' => array(
    'captcha' => 'Image',
    'font' => APPLICATION_PATH . '/../public/fonts/arial.ttf',
    'fontSize' => '24',
    'wordLen' => 5,
    'height' => '50',
    'width' => '150',
    'imgDir' => APPLICATION_PATH.'/../public/captcha',
    'imgUrl' => Zend_Controller_Front::getInstance()->getBaseUrl().'/captcha',
    'dotNoiseLevel' => 50,
    'lineNoiseLevel' => 5,
),
'description' => 'Refresh Captcha Image'

));

它工作得很好但是对于验证码,我想使用刷新图像代替“刷新验证码图像”语句。

4

1 回答 1

0

您是否尝试添加 img / div 标签作为描述?

'description' => '<img src="myimage.png">'

OR

'description' => '<div id="image"></div>'
于 2013-07-24T10:25:04.940 回答