Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding description.. #3

Closed
seltzlab opened this issue Mar 30, 2012 · 2 comments
Closed

Adding description.. #3

seltzlab opened this issue Mar 30, 2012 · 2 comments

Comments

@seltzlab
Copy link

to a text field this way

$this->addElement('text', 'name', array(
        'label' => 'Name',
        'required' => true,
        'description' => 'This field is required'
    ));

I receive this error:

PHP Fatal error: Call to undefined method Zend\View\Variables::escape() in /home/antonino/Workspace/spark/vendor/ZendFramework/library/Zend/Form/Decorator/Description.php on line 184

Any suggestion?

Thanks!
Antonio

widmogrod added a commit that referenced this issue Mar 31, 2012
@widmogrod
Copy link
Owner

Ok, I fix it. Now by default description is not escaping string.

But this error is a problem in ZF2. New implementation of Zend\View\Helper\Escape do not contains method escape()
& \Zend\Form\Decorator\Description has old style of invoking this helper.

@widmogrod
Copy link
Owner

Fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant