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.
In your code you are setting $user with the content of the username. But you are not printing it.
which is short for