So I guess the CakePHP development staff doesn’t take any holidays. Bright and early New Years Day 2008, we’re greeted with a fresh new release of CakePHP 1.2.6331 beta. No, not pre-beta a full blown beta. Needless to say I’m excited about this.
There have been some nice changes which have gone through all through the Christmas season. Guys, I thank you for your dedication. The one major thing I’m excited about is the way that the Form Helper now processes dates and times; there’s no longer a cleanUpFields() function, everything is automatic (or should I say automagic). You’ll have modify your code since the result in $this->data is slightly different. There’s been some stuff deprecated and some stuff added.
The Model::generateList() function has also be deprecated, in favor of Model::find(’list’). It’s not an exact duplicate of generateList() but it gets the job done. Check out the cakebaker for more essential tips for upgrading from CakePHP 1.2 pre-beta to the fresh new CakePHP 1.2 beta.
Enjoy and Happy Baking!
Popularity: 45%
Share This
If you're new here, you may want to subscribe to my Full RSS feed. Thanks for visiting!
One of the nice things about CakePHP is that it includes ready to use CSS compression. Granted, compressed CSS can be buggy at times, but for the most part it works just fine.
I've always wondered why no one has included something like this for Javascript, since that's usually the bigger culprit when we're talking about document size. I've tried using Minify in the past. However, it took a lot to get it working right. And I really hate hacking stuff just to work with CakePHP. That, coupled with the fact that I'm a lazy bastard, meant that I gave up the Minify train rather quickly.
Mark Story To The Rescue - JSMIN Javascript Helper
At the time, I hadn't heard about the JSMIN library, which does pretty much the same thing the Minify does, but without the CSS. Luckily, Mr. Story had some vision after his Christmas festivities and cake up with a JSMin Helper for CakePHP. This helper works by Minifying the chosen Javascript. This involves stripping unnecessary characters (line breaks, comments, spaces, etc) from the .JS file.
It also includes functionality to cache the resulting files. What more can you ask for?
Usage:
Share This

Today I popped onto the CakePHP Bakery looking for the obAuth Component. To my surprise, I got a blank page.
Seems like there's a database issue. Here's hoping that it's not down for too long.
Update (11/20/07):
Most of the stuff is back up on the bakery. The rating is still a small issue, but all the code and tutorials are up and running.
Bake On!
Popularity: 24%
Share This