News Feed
Jobs Feed
Sections




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

DevShed:
Moving Presentation Logic Out of Views with CodeIgniter
April 17, 2009 @ 07:53:38

On DevShed today they continue their introduction to CodeIgniter series with this new tutorial looking at views nd how to move some of the presentation logic out of them an into a "sub-view container".

Manipulating views with CodeIgniter is a straightforward process. [...] However, CodeIgniter gives PHP programmers enough freedom to handle views in several useful ways, which can speed up the development of web applications. Therefore, if you're taking your first steps with CI and wish to learn some handy approaches that will help you work with views in a truly painless fashion, then start reading this tutorial now!

Their method defines a reusable view "container" (their content_view.php) to handle the looping that was previously just done in the one view for the user listing. This makes the content_view script reusable across more than one view and standardizes some of the look/feel in the view's output.

0 comments voice your opinion now!
codeigniter presentation logic view tutorial container


blog comments powered by Disqus

Similar Posts

Prism-Perfect.net: PHP Tag Cloud Tutorial

The Bakery: Eight New Items (Components, Tutorials & Helpers)

PHP Addiction Blog: PHP - No Container libraries?

William Candillon's Blog: Running Zorba with PHP

PHPBuilder.com: Handling Hierarchical Data in MySQL and PHP


Community Events











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


series facebook release composer hhvm framework install database component package unittest opinion application security hack performance introduction language symfony2 podcast

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