Welcome Guest, Not a member yet? Register   Sign In
loading a helper in a library
#1

[eluser]tokyotech[/eluser]
I wrote my own DateForm library that creates HTML dropdowns of the months and days. I tried to do $this->load->helper('form') in its constructor but an error was given saying "load" was not defined. I suppose this is because only controllers are allowed to load helpers. But isn't it cumbersome to have to load the form helper every time I want to load my DateForm library?


Messages In This Thread
loading a helper in a library - by El Forum - 10-10-2009, 09:40 PM
loading a helper in a library - by El Forum - 10-10-2009, 09:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB