Is there a quick way in Forms\Element to set attributes for the label element ? My current workaround is just to use markup in a volt viewfile : <label class="control-label" for="registered_name">Registered Name</label>
I use this now in my form class : $registered_name->setLabel("Registered name");
then the view : {{ form.label('registered_name') }}
gives : <label for="registered_name">Registered Name</label>
So, I would like to add the "class" attribute to this.
I am happy to make a render method as per : https://docs.phalcon.io/en/latest/reference/forms.html#rendering-forms