Welcome Guest, Not a member yet? Register   Sign In
How to call helper function from Controller's Constructor?
#3

(This post was last modified: 11-11-2020, 04:56 AM by munggaran.)

(11-11-2020, 02:01 AM)T.O.M. Wrote: If you loaded your helper then you can call it's function only with name - thefunction();
I loaded helper in basecontroller so all controller will have the helper, it works whenever I call thefunction() inside index() or other_function(), but if I try to call from __constructor it will raise an errorĀ  Sad
Reply


Messages In This Thread
RE: How to call helper function from Controller's Constructor? - by munggaran - 11-11-2020, 02:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB