How to use public variables from controller in views in CI 4 |
@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. |
Welcome Guest, Not a member yet? Register Sign In |