Welcome Guest, Not a member yet? Register   Sign In
homemade helper isn't working
#1

[eluser]hht1230[/eluser]
I have functions that are used in several parts of the site to format strings so I thought I would put them in a helper. I created myformat_helper.php with those functions in system/application/helpers and in the controller I do $this->load->helper('myformat') but I get a "Call to undefined function" in the view when I try to call any of the functions. It works fine when the functions from the helper are physically in the view page, so I must not be accessing the helper correctly. Some dumb thing I have overlooked?

Also, why is there no closing ?> in the built-in helper files?


Messages In This Thread
homemade helper isn't working - by El Forum - 07-16-2008, 07:11 PM
homemade helper isn't working - by El Forum - 07-16-2008, 07:51 PM
homemade helper isn't working - by El Forum - 07-16-2008, 07:51 PM
homemade helper isn't working - by El Forum - 07-16-2008, 07:52 PM
homemade helper isn't working - by El Forum - 07-16-2008, 08:09 PM
homemade helper isn't working - by El Forum - 07-16-2008, 08:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB