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

(This post was last modified: 11-11-2020, 07:02 AM by T.O.M..)

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'); 
Reply


Messages In This Thread
RE: How to call helper function from Controller's Constructor? - by T.O.M. - 11-11-2020, 06:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB