Back to lesson
1. Why might you use require to template out a web site?
If the data in the template is essential to your app.
If you don't care about crashing.
You would never use require.
2. What's the main drawback against using Require?
Require won't echo objects.
It gives a different error message.
If there's a problem, require will crash your whole app.
3. Do you ever HAVE to use require?
No, you can use include.
Back to the top
© 2017 GoSkills Ltd.
Skills for career advancement