08-06-2023, 04:24 PM
I cannot get my username to show on the website when I call it form the session.
The code on the index page is:
<h1>Users Home</h1>
Welcome <?php $user = $this->Session->read('Users.username');?>
What am I doing wrong?
I've also tried various other ways of calling it and then getting different error messages.
The code on the index page is:
<h1>Users Home</h1>
Welcome <?php $user = $this->Session->read('Users.username');?>
What am I doing wrong?
I've also tried various other ways of calling it and then getting different error messages.