the most awesome guy ever.

The Blog of Darryl E. Clarke

  Random musings from a jaded coder who just needs a hug.

Posts Tagged ‘views’

Rendering Loops, the Easy Way

Tuesday, January 20th, 2009

I’d like to say I’m an idiot and should have known how to do this a long long time ago, but since the Zend Framework is so huge – I’m letting it slip by.

Normally I’ve always rendered repetitive data by using a foreach on my objects or arrays and then within that foreach I usually render an external file (when I’m not lazy), or even just have a large chunk of html within my view scripts.  When it comes to bigger sites, I want the html fragments to be as simplified and manageable as possible…

(more…)

Tags: , , ,
Posted in PHP, Zend Framework