简体   繁体   English

Zend验证码字段的装饰器

[英]Decorators for zend captcha field

I am trying to add captcha field on my from using zend form. 我正在尝试通过使用zend表单在我的验证码字段上添加。

am using decorators: 我正在使用装饰器:

> private $elementDecorators = array(  
> 'ViewHelper', 'Errors',
> array('errors',array('tag' => 'td',
> 'class' => 'error')),
>     array(array('data' => 'HtmlTag'), array('tag' => 'td', 'class' => 'td' 
> ,'valign'=>'middle','align'=>'left')),
> array('Label', array('requiredSuffix' 
> => ' * ',
>               'tag' => 'td',
>                                    )),
>     array(array('row' => 'HtmlTag'), array('tag' =>
> 'tr','class'=>'tr','openOnly'=>true,'align'=>'right')),
> );

Captcha field is working fine.but it's putting captcha field on top of page because of absence of a td 验证码字段工作正常。但是由于缺少td因此将验证码字段放在页面顶部

can any one explain what decorators we can use for captcha field so it will come at right place? 谁能解释一下可以用于验证码字段的装饰器,以便它出现在正确的位置?

I'd suggest you to use latest ZF version. 我建议您使用最新的ZF版本。 http://framework.zend.com/issues/browse/ZF-9168 http://framework.zend.com/issues/browse/ZF-9168

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM