![]() |
Does anyone have time for a little change?
It would be correct for the form helper to set the attributes "required", "disabled", "autofocus", "readonly" Basically it's boolean values output as Code: <input type="text" required disabled autofocus readonly> I think it's worth adding this feature to parse_form_attributes() function. What for? It is not possible to easily set these options in form_input(), form_textarea(), etc. Empty values are inserted. For HTML 5 this is wrong PHP Code: form_input([
I had no experience in open source support
![]() If no one does it, I'll try it later
It seems this is already fixed.
PHP Code: <?php I see Code: <input type="date" name="datebirth" value="" class="form-control" required readonly /> Wait, 'required' => false makes outputting required? It seems no problem as HTML: https://html.spec.whatwg.org/multipage/c...attributes (07-13-2022, 02:08 AM)ozornick Wrote: Cannot reproduce this. It seems the feature to show boolean attributes has been since v4.0.0. https://github.com/codeigniter4/CodeIgni...3ebc2af358 |
Welcome Guest, Not a member yet? Register Sign In |