Welcome Guest, Not a member yet? Register   Sign In
Help with form helpers
#1

[eluser]NachoF[/eluser]
Is there a way I can change to way form helpers behave?? I understand they can receive parameters for extra attributes but the only extra functionality I want is having them set the id of the form element to be the same as the name attribute

so for example I want
Code:
form_input("login")
to output
Code:
<input type="text" name="login" id="login" value=""  />
#2

[eluser]jbreitweiser[/eluser]
You can extend helpers.

http://ellislab.com/codeigniter/user-gui...lpers.html

Copy the functions you want to override and add code to add the id tag.
#3

[eluser]flaky[/eluser]
http://ellislab.com/codeigniter/user-gui...elper.html

go to form_input




Theme © iAndrew 2016 - Forum software by © MyBB