- Code, Content, and Presentation
-- PHP Server Side Scripting
---- PHP Variable Substitution Tricks
- 4:50 pm on Nov 14, 2011
Code and HTML all mixed together is something I've always disliked about how most implement their PHP code and sites.
I don't like frameworks of any sort either. No reason to buy the whole building when you're only using one or two rooms in it. I use a process similar to your but with agreed markers.
For variable formatting chunks, I create "pieces"
Rather than file_get_contents, I prefer to parse the files line by line to sub out the variable chunks. I don't think it's any faster (or slower) but makes it easier to see what exactly is going on.
Brought to you by