Form Helper - form_label |
In the user guide you write that "attributes" is a string type:
form_label([$label_text = ''[, $id = ''[, $attributes = []]]]) Parameters $label_text (string) – Text to put in the <label> tag $id (string) – ID of the form element that we’re making a label for $attributes (string) – HTML attributes but in reality it is an array: SYSTEMPATH\Helpers\form_helper.php at line 449 PHP Code: function form_label(string $labelText = '', string $id = '', array $attributes = []): string
Thank you.
You can send a PR to fix it. https://codeigniter4.github.io/CodeIgnit...elper.html by "Edit this page" button. |
Welcome Guest, Not a member yet? Register Sign In |