![]() |
(05-01-2023, 04:36 PM)iRedds Wrote: Your PHP is defective. ??? print view('my view', ['session' => session()]); myview.php ... <p><?= $session->xyz ?></p> ... So the proper way to access session data in a CI view is to use the session() function or fetch the session data into another variable and pass that to the view? I don't see why it matters. This has been working in CI4 for many years.
Simpler is always better
|
Welcome Guest, Not a member yet? Register Sign In |