如何在Zend中显示重新加载图像的位置语句“Refresh Captcha Image”

时间:2013-07-24 09:40:19

标签: zend-framework captcha recaptcha

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

以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'

));

它工作正常但是对于验证码我想使用刷新图像代替“刷新验证图像”声明。

1 个答案:

答案 0 :(得分:0)

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

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

OR

'description' => '<div id="image"></div>'