You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FormRow helper used to call the __invoke() function of the FormLabel helper in earlier versions of zend-form (e.g. 2.7.0), but not anymore. I noticed this because we override the FormLabel helper with a new __invoke function, which is now ignored.
I think this line of code here should be changed back to
In case someone stumbles upon the same symptom after an upgrade to laminas: FormRow in Laminas uses the string 'form_label' (instead of the former 'formLabel') to identify the helper. So you might have to use that alias in the view_helpers section of your config file.
EDIT: However, you are right, as even with the correct settings, the FormLabel helper is not invoked.
The FormRow helper used to call the __invoke() function of the FormLabel helper in earlier versions of zend-form (e.g. 2.7.0), but not anymore. I noticed this because we override the FormLabel helper with a new __invoke function, which is now ignored.
I think this line of code here should be changed back to
As it used to be in zend-form 2.7.0. Otherwise, the __invoke() function of the FormLabel helper never gets called.
Or am I missing something here? Is there another way now to override the behavior of the FormLabel helper?
Originally posted by @aimfeld at zendframework/zend-form#165
The text was updated successfully, but these errors were encountered: