ZF-9108: Zend_Captcha_Image always has
in rendered element

Issue Type: Improvement Created: 2010-02-07T04:22:32.000+0000 Last Updated: 2010-07-16T13:07:43.000+0000 Status: Resolved Fix version(s): - 1.10.7 (28/Jul/10)

Reporter: Michael Kliewe (mkliewe) Assignee: Mickael Perraud (mikaelkael) Tags: - Zend_Captcha

Related issues: Attachments: - Image.diff


At the moment it is not possible to put the input text field of an Zend_Form_Element_Captcha besides the captcha image with css for example.

The generated code looks like this:

<pre class="highlight"><img alt="f2fa4b159345bf3bd7ab7268349aa11a.png" src="/images/captcha/f2fa4b159345bf3bd7ab7268349aa11a.png"></img><br></br>

The render() method looks like this at the moment:

<pre class="highlight">public function render(Zend_View_Interface $view = null, $element = null)
    return '<img alt="'.$this->getImgAlt().'" src="'%20.%20$this-"></img><br></br>';

So there is always a
in it which makes it hard to change the appearance with css.

should not be hardcoded and the output should be more flexible, so a developer can put the textfield right beside the Image.

At the moment I changed that behaviour by extending Zend_Captcha_Image and changing the render() method.


Posted by Martin de Keijzer (martin1982) on 2010-05-11T06:13:19.000+0000

Totally agree, created a patch to simplify update

Posted by Mickael Perraud (mikaelkael) on 2010-07-16T13:07:43.000+0000

Fixed on trunk with r22583 and merge into 1.10 branch with r22584

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.