I am trying to store $this->Request->Data on a session so I can use it again in a different controller but when I do that I'm getting an error message.
The code:
$x_hours = $this->request->data;
$this->Session->write('x_hours', $x_hours);
The error I get is:
Error: Call to a member function write() on boolean File \src\Controller\HomeController.php Line: 59
What am I doing wrong?
Thanks in advance for your support.