Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Introducing MVC Frameworks in PHP!
You have completed Introducing MVC Frameworks in PHP!
Preview
Map, Redirect and Named Routes
Here is a list of HTTP status codes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Probably not what we want, so let's make
this redirect to a thank you page instead.
0:00
We're going to add another route, so
let's copy the first route, once again.
0:01
We'll change the first parameter
to '/contact/thankyou'.
0:08
Now, we'll remove the logger and
change about to thankyou.
0:15
Now, instead of rendering the thankyou
after logging, let's redirect.
0:22
To redirect,
we're going to change the response.
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up