Open hesna opened 6 years ago
I wonder if this is what he meant to say but never did.
"Comment out this code until next step"
foreach ($response->getHeaders() as $header) {
header($header, false);
}
echo $response->getContent();
I'm confused and lost between step 5 and 6. What am I supposed to see after implementing all code from step5? The 404 page message still? Because that's what I get..... I doubt it's supposed to be like this.
Running current code for Router section results in following error:
Cannot modify header information - headers already sent
It is caused by
echo
statements in route resolvers and can be fixed if resolvers return content instead.As it is, one cannot finish this section without an exception page. Is this behavior intentional?