News 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

Pierre\'s Blog: phpgd.com

VXTIndia Blog: How to setup your new VPS Ubuntu server

Community News: PHP Tutorial Site - GoodPHPTutorials.com

RoofTopSolutions.nl: Caching in PHP using the filesystem, APC, and Memecached

Ulrich Kautz: PHP Validation & Sanitization


Community Events





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


library language list laravel podcast api code configure application wordpress threedevsandamaybe series framework introduction bugfix developer community release project interview

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