A great feature of PHP – Cookbook for context implementation
This article covers technical details of PHP driven configuration described in a previous article. There are a lot of stones under the water that can drive you crazy when you work with PHP templating engine. I will tell you how to work around some of them. We’ll discuss how to:
- Implement script inclusion methods
- Prevent vision of context’s private members
- Implement graceful error handling
- Implement state stack for nested scripts inclusion
- Include scripts by relative path
- Output JSON arrays/objects in for-loops
- Prevent security issues
No comments yet.
Add your comment