CodeIgniter Forums

Full Version: location form_fieldset
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]almarjin[/eluser]
Hi,

Does any one know where to find "form_fieldset"?

I just wanted to edit.

Thanks,

El Forum

[eluser]xwero[/eluser]
If you want to edit it you better extend the helper. the helper name is form so you create a file application/libraries/MY_form_helper.php and you add the function form_fieldset where you add your code.

If you load the form helper your customized function will be available.

El Forum

[eluser]almarjin[/eluser]
Thanks I will try that.

you mean the new function will work? then the old one will not?

how about the anchor? I also wanted to edit it. I want to put css class on it.

Thanks again.

El Forum

[eluser]xwero[/eluser]
Yes the function in the application/helpers/MY_form_helper.php will replace the function in the system/helpers/form_helper.php.

It's in the helpers directory and not the libraries directory as i mentioned before.

El Forum

[eluser]Derek Allard[/eluser]
If all you're wanting to do is add css classes to these, both anchor and form_fieldset already support this. There are examples in the docs, and for fieldset that exact example (setting a css class) is used.

El Forum

[eluser]almarjin[/eluser]
xwero and Derek Allard

Thank you guys. Now I know