2.1.0
Adds support for custom auto_id
generators:
Aire::setIdGenerator(function(Element $element, Form $form = null) {
return 'input-'.$element->getInputName();
}
Aire comes with support for automatically generating input's id
attribute, but the default implementation is focused on avoiding naming collisions, so IDs look something like __aire-1-password3
. You can now replace this with your own ID generator to match a convention you set in your app.