Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

router example throws exception #67

Open
hesna opened this issue Oct 14, 2018 · 2 comments
Open

router example throws exception #67

hesna opened this issue Oct 14, 2018 · 2 comments

Comments

@hesna
Copy link

hesna commented Oct 14, 2018

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?

@hesna hesna changed the title router example code bug router example throws exception Oct 14, 2018
@tylerlazenby
Copy link

tylerlazenby commented Feb 14, 2020

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();

@Wondarar
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants