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
Category: CakePHP
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
If are you are using a non-standard column name for your primary key (something other than ‘id’), maybe from a legacy database, it is very
Update (2/14/2011): Take a look at a more robust approach that works with recent 1.3 versions of CakePHP. Update (9/25/2008): Since the writing of this
Update to this post is here. (New libraries and new techniques are discussed). This is a quick example on how to setup an autocomplete field
One question that I’ve seen come up a few times is: “How do I handle multiple checkboxes in a form?” The only trick here is
I’ve completely abandoned using Prototype/Scriptaculous in favor of JQuery. I simply prefer the way JQuery does things: Simple syntax No more in-line JS Lots of