Published by Mijingo

movie icon image

EE Insider Blog

Spend your time learning and developing sites with ExpressionEngine and we'll use this blog to keep you informed of all the news related to ExpressionEngine and CodeIgniter.

» Read more in the Archives.

» Have a tip? Send us your EE news.

Learn ExpressionEngine Today

Over a series of 8 videos, watch and learn as Ryan builds an entire ExpressionEngine website from beginning to end. Get started now.

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.

 

Posted on Nov 01, 2010 by Brian Warren

Filed Under: ExpressionEngine 2