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