[eluser]Unknown[/eluser]
I am making an effort to use the helpers, in this case the "Form Helper", as much to my advantage as possible; so that my code is more easily maintained by others in the future. I have noticed that the "
form_hidden()" function behaves much differently than the other functions; for an example, I will talk about "
form_input()".
For
form_input(), and other functions, you can use an array that controls the tag attributes (like "name", "value", and "size") with the result that all values in the array are included in the generated HTML tag.
The
form_hidden() function does not act like this--the array you use only allows multiple "hidden" HTML tags to be created in one fell swoop. There is no way to attach an "id" tag attribute, that I can find.
While the ability to create "hidden" HTML tags in batches is probably beneficial, I would think that conforming to the behavior modeled by other functions would be most important; with the added functionality associated through other means. (Like an additional array parameter, for example.)
So, I solve this problem by creating my own "hidden" tag without the aid of the Form Helper. Still, I thought I would contribute to the CodeIgniter experience by suggesting a modification of the
form_hidden() function.
Is this a bug fix or should I go through some other process to open a discussion?