News Feed
Sections




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

Jonathan Snook's Blog:
Elemental Conditional Content with CakePHP
June 25, 2007 @ 12:35:00

In the new blog entry, Jonathan Snook shows how to implement "conditional content" on your CakePHP application.

I finally got around to implementing conditional content here on Snook.ca. I've wanted to do this since I moved to the new design just over a month and a half ago. [...] With a little bit of late night development and some quick help from Larry (aka PhpNut, the lead developer of CakePHP), I've developed what I have dubbed "Elemental".

In his example he shows the two parts making up the functionality - the controller with new methods (in app_controller.php) and a new helper called "Elemental". Using the methods enableElement and disableElement you can turn off and on different chunks of code that are stored in an element array.

0 comments voice your opinion now!
cakephp framework elemental conditional content tutorial cakephp framework elemental conditional content tutorial


blog comments powered by Disqus

Similar Posts

Alexander Netkachev's Blog: Practical PHP events: The Java way

Symfony Blog: Symfony2 Online Conference

Padraic Brady's Blog: Zend Framework Blog App Tutorial - Addendum #2: Revised Design, Date Helper

JSLabs Blog: Top 10 PHP frameworks (for 11.28.2006)

Daniel Hofstetter's Blog: Use components from the Zend Framework with CakePHP


Community Events





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


symfony community release composer language version voicesoftheelephpant threedevsandamaybe api podcast conference configure unittest introduction laravel framework list opinion series interview

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