Extend a helper |
[eluser]Filip Vanderstappen[/eluser]
I'm picking up CI again after a long time; and I'm actually building a very nice application in it. Because I want to have very clean and reusable code I'd like to change a helper. As I don't want to do this in the framework itself I would like to extend the helper. So what is the best way to do this in CI? And what would be the best way to extend a Library? So, an example of what I want to be able to : I want to change the form_radio function in the form helper. And I would like by eg. an extra function form_captcha() I wondered a little around in the code and on the forums, but I couldn't find a satisfying answer. I hope there is someone here who can sort it out.
[eluser]mah0001[/eluser]
Helpers: http://ellislab.com/codeigniter/user-gui...lpers.html Library: http://ellislab.com/codeigniter/user-gui...aries.html
[eluser]Filip Vanderstappen[/eluser]
[quote author="mah0001" date="1267149877"]Helpers: http://ellislab.com/codeigniter/user-gui...lpers.html Library: http://ellislab.com/codeigniter/user-gui...aries.html[/quote] It's a shame! How could I've missed that! Sorry for the inconvenienceā¦ :x
[eluser]Filip Vanderstappen[/eluser]
I just wrote my first helper and it went smoothly! Thanks for your help mah0001 |
Welcome Guest, Not a member yet? Register Sign In |