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

(11-11-2020, 06:58 AM)T.O.M. Wrote: In BaseController constructor is initController() method (not __constructor()).
So your __constructor() is called earlier then BaseController::initController() and helpers are not loaded yet.
You can try to load helper manually in your constructor right before call its method with
PHP Code:
helper('your_helper'); 


ahhh, now it's working Smile thanks mate!
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB