A few times I’ve heard people complaining about the fact that CakePHP’s find methods return data as arrays and not as objects. “It’s not OO!”,
Month: May 2008
Let’s say you have an application, where users can place votes for their favorite products and you’d like to increment the current number of votes
Update: 6/09/2008 Unforunatelly I cannot have this PDF file here anymore, since it is a violation of the license. The good news is that PDF
Do you need to get some information about your current state of the cake app?… Maybe find out the name of the current layout? Or
Sometimes it’s very handy to be able to quickly build a string from CakePHP’s resultset array. For example you want to build a string of ID’s
Let’s say you need to know when was the very first user record created. Add a method like this to your User model (assuming you
Update (9/9/2008): Since the writing of this post, there is now a nicer way to handle this, which David Persson kindly pointed out: $Xml =
There is a very slick flash charting tool out there called amCharts (www.amcharts.com). If you are in need of some reporting or charting UI for your
If you’ve been around CakePHP for some time, you’ve probably heard that writing custom SQL is pretty much frowned upon. At the core, CakePHP provides
Sometimes you’d like to create a link that will redirect your traffic to the homepage. For example, you have some partner web site that will