Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Non-existing method getRequired() in Zend_Form-Elements docs #679

Closed
coreyzev opened this issue Mar 16, 2016 · 3 comments
Closed

Non-existing method getRequired() in Zend_Form-Elements docs #679

coreyzev opened this issue Mar 16, 2016 · 3 comments

Comments

@coreyzev
Copy link

Though this seems to state it was fixed in: http://framework.zend.com/issues/browse/ZF-2938

I am still seeing this issue in Zend 1.12.x. In attempting to use $form->element->getRequired() I received the error:

Warning: Exception caught by form: Method getRequired does not exist Stack Trace: 
#0 /var/www/html/ch.dev.zerve.com/releases/20160316212611/lib/Zerve/Form/Decorator/BootstrapElement.php(43): Zend_Form_Element->__call('getRequired', Array) 
#1 /var/www/html/ch.dev.zerve.com/releases/20160316212611/lib/Zerve/Form/Decorator/BootstrapElement.php(43): Zend_Form_Element_Text->getRequired() 
...
@froschdesign
Copy link
Member

@coreyzev
Please use isRequired. It is documented in "Validators - Methods associated with validation include".

@coreyzev
Copy link
Author

Yup, that's what I did. Thanks.

Glad to see the documentation will be fixed to remove or correct getRequired.

@froschdesign
Copy link
Member

@coreyzev
Thanks for reporting.

dgiotas pushed a commit to tripsta/zf1 that referenced this issue Jun 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants