On his blog today, Chris Hartjes has posted a tutorial about getting charts, specifically SWF charts generated with PHP, into your CakePHP application.
Okay, for a project at work I was asked to add graphs to some of the reports I'd already created. So I looked around for solutions for graphing in PHP and stumbled upon PHP/SWF Charts as a solution.
He walks you through the installation (a simple unpacking) and the code that he used to get things set up and working, inluding his custom controller. His GraphsController functions the same way as any other controller, but uses a single action function to encapsulate the generation of the chart. This is then pushed out to the view where the PHP/SWF Charts system is implemented.