Welcome Guest, Not a member yet? Register   Sign In
How to use public variables from controller in views in CI 4
#11

@John_Betong, I'm really sorry to say that I didn't understand what you mean. 

@includebeer, thanks for your suggestion. But in this case, I'll have to pass $this->data with every view(). And beside this, I couldn't use $this->my_variable in views. Which I've in CI3.
Reply


Messages In This Thread
RE: How to use public variables from controller in views in CI 4 - by ciddict - 12-30-2020, 07:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB