Greg Aker on PHP in Templates
Greg Aker wrote an interesting post about PHP in your templates called With Great Power Comes Great Responsibility. He builds a really nasty, PHP-intensive template and runs some tests against it to see how such a template would impact the server.
PHP directly in the templates is fantastic for small chunks. I do want to illustrate the kind of issues that may arise if you are putting too much PHP into your templates, and show alternatives.
If you make it through Greg’s post and are a little befuddled, check out Greg’s comment at the bottom where he sums up the results nicely.
Share on Twitter