News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Stefan Mischook's Blog:
Note to CodeIgniter nerds please, no looping code in your views.
June 06, 2008 @ 08:43:53

Stefan Mischook so eloquently expresses his opinion on a method for looping in the CodeIgniter framework in this new post to the KillerPHP blog today, "Note to CodeIgniter nerds: please, no looping code in your views."

I was researching things 'nerd' on the Web today, and I found myself at the CodeIgniter website. [...] I'm wondering about CodeIgniter's decision to place PHP looping code in their views.

He notes that the whole point of the View in the Model/View/Controller framework is to keep as much PHP out of it as possible. In their example they show just the opposite. Some of the comments agree with his post, noting that this is in fact the point of the View. Others, however, point out that code in the View, especially looping code is something necessary to output multiple items being passed out.

0 comments voice your opinion now!
codeigniter view framework loop output


blog comments powered by Disqus

Similar Posts

Ibuildings techPortal: lessphp: PHP implementation of Less CSS

Richard McIntyre's Blog: Using OAuth in Lithium

Jonathan Snook's Blog: View Caching in CakePHP 1.1.8

Community News: Seagull Project Release Candidate 1 for Version 0.6

IBM developerWorks: Understanding the Zend Framework (Parts 5 & 6)


Community Events

Don't see your event here?
Let us know!


community interview php7 extension xdebug podcast voicesoftheelephpant language series install example library laravel5 unittest framework api laravel opinion introduction release

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework