Closed karamusluk closed 6 years ago
I think after $response->redirect('/auth/login')->send();
you need something to stop execution of the rest of your logic. You could do a return
or a die()
.
The send finishes processing your response and locks it, but there's no way for your function to know that, so it keeps on executing. Then it tries to put something in the $response->body()
and it can't, because the response is locked.
Thank u very much for your response :) that worked well for me. Sorry for the late response
Hello everyone, I have a problem in my index.php file and following error is produced anytime once i go to the blabla.com/ . I haven't tested all the pages in the system but i guess i have to figure the problem in the root.
Following is the error message generated by debugger.
And below is my root routing code.
Can anyone help me to figure the problem out?
Thak you for your all contributions in advance.