How to start session globally? |
(11-04-2019, 10:48 AM)macruzgi Wrote: If I print those values on the current controller, it works correctly, but when evaluating them on another controller, it no longer exists. Does the above class extend BaseController? You MUST uncomment the line PHP Code: //parent::__construct(); Because if that does not run then the BaseController does not get to run this line PHP Code: //BaseController In the example above you also do this PHP Code: $this->sesion = session(); Don't do that! $this->sesion should be set up by BaseController and so is ready for use. |
Welcome Guest, Not a member yet? Register Sign In |