EECI 2010: PHP in templates: Pain or Pleasure
Another one of my favorite talks (and not just because of his dry humor) was Low’s presentation on using PHP in templates. Before the presentation I went up to Low and told him I know the answer: Pain. I’ve used a lot of PHP in templates when it was needed. However, I’ve always found PHP code in templates a lot of work to maintain going forwards&emdash;especially weeks or months later.
Low, however, showed some smart ways of using PHP, how the EE parse order works and, finally, how you can use both to make PHP in your templates pleasure, not pain.