How to use public variables from controller in views in CI 4 |
@ciaddict
> I didn’t understand... Do you know how to use the Base_Controller? In the Base_Controller index method define(‘MY_CONSTANT’, ‘with an array, string, integer, bool or object’); To show in the view: <?= MY_CONSTANT ?> |
Welcome Guest, Not a member yet? Register Sign In |