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

Matt Curry's Blog:
Adding Custom Panels to the CakePHP Status Plugin
August 10, 2009 @ 09:46:59

Matt Curry has a new post looking at adding additional functionality (custom panels) to his CakePHP status dashboard application.

There are two different ways to add a panel '" using requestAction or Ajax. The general rule is if the panel is pretty fast to load and content is static use requestAction. If the panel takes some time or you want to be able to interact with it then use Ajax. For example, the logs panel uses requestAction since it's pretty quick to grab the log entries and you really don't need to interact with them. The Google Analytics panel, on the other hand, takes a few seconds to query the API and has options to change the timeframe, so it uses Ajax.

New panels can either be made as a part of the application or as plugins and bundled for easy adding and removing. He shows how to write the controller and the element to interface with the CakePHP code. His example grabs the latest users created on his application.

0 comments voice your opinion now!
cakephp status plugin custom


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Rapid Application Development with CakePHP

Felix Geisendorfer's Blog: How to organize your CakePHP App's Javascript?

Felix Geisendorfer's Blog: MacGyver menu for CakePHP - What's the active menu item?

Learncomputer.com: PHP Profilers Compared (PHP Quick Profiler & XDebug)

Debuggable Blog: How To Execute Only Specific Test Methods in CakePHP Unit Tests


Community Events











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


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

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