- Messages
- 4,467
- Reaction score
- 95
- Points
- 0
I've seen some tutorials, some programs, etc. that mix up content (html in this case) and code (php here). For instance, they would start an IF clause, close the php tags, put in some html, reopen the php tags and close the IF block.
I find this practice bad, because the code and the content are embedded into each other. Here is my call:
If you want to generate all the html from server-side code, output it normally, but if you want to separate the code, the content (, etc.), then use a templating system, or create one.
What's your call.
I find this practice bad, because the code and the content are embedded into each other. Here is my call:
If you want to generate all the html from server-side code, output it normally, but if you want to separate the code, the content (, etc.), then use a templating system, or create one.
What's your call.