News Feed
Sections




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

Felix Geisendorfer's Blog:
Basic CakePHP templating skills
October 12, 2006 @ 07:44:00

From the ThinkingPHP blog today, Felix Geisendorfer has shared some of his experience to help those CakePHP users out there that are looking at doing more templating to their applications than just the normal index changes.

One of the things I don't see getting to much coverage is how to create good templates when working with CakePHP. Since those are written in plain PHP, this does not apply to CakePHP only. So I'm sure many people have already developed their own style that they are comfortable with and I don't ask for them to change it. However, maybe some people new to the framework / language can benifit by taking a look at the one I'm using.

He covers a few different topics:

    PHP tags
  • Conditions
  • Loops
  • the linebreak issue
  • avoiding multi-line statements
  • Creating Zebra striped table rows
The code included on some of the points (not the multi-line or the PHP tags items) is simple and is summed up in less than six lines.

0 comments voice your opinion now!
cakephp templating skills basic framework condition loop linebreak zebra cakephp templating skills basic framework condition loop linebreak zebra


blog comments powered by Disqus

Similar Posts

Atlanta PHP Users Group: April 2006 Meeting - 6th @ 7pm

Chris Hartjes' Blog: 10 Days Later - Early Impressions of CakePHP vs. CodeIgniter

EllisLabs Blog: EllisLab moves to Mercurial, Assembla, BitBucket; CodeIgniter 2.0 Baking

Reddit.com: Building software from scratch vs learning a framework, before applying to jobs

SitePoint.com: An Introduction to CodeIgniter


Community Events

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


framework configure example podcast release performance conference community install series interview symfony2 introduction opinion part2 language api laravel php7 application

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