CakePHP Digest #10 - News Overload
News
CakeFest #3
The long awaited end to the CakeFest trilogy has finally been announced (don't worry, I'm sure there will be a prequel). The fun takes places in Germany this time, from July 9th to the 12th. CakeFest is divided into two parts. The first two days are for workshops (499€). The second part is the conference (199€). Put a badge on your website and you could get in to that for free. Proposals for talk at the conference are being accepted right now. Edit: I completely botched this sections in my two attempts.
New Cake 1.2 Released and Even Newer Cake 1.3 In Development
There is a new release of the 1.2 branch, which fixes a bunch of bugs. Also 1.3 is now rolling, with development moved over to Git and located at TheChaw. You can also check out the various branches that are in progress at the moment.
Within 24 hours of the announcement we had the first "Would you recommend us to use 1.3 for new development?" question. To save the Cake devs the trouble of having to answer this question repeatedly over the next few months I will provide an answer here that can be copied and pasted:
Yes, absolutely. CakePHP 1.2 is legacy at this point and won't receive any new features. All the cool development is happening on 1.3. In addition to any new development, you should port all your old projects over immediately, starting with the large mission critical ones.
Proving that only 99.99999% of people on the internet are douches, Nate was able to get the @cakephp Twitter account simply by asking. So if you prefer your Cake news in "instant" format, rather then "digest" format feel free to follow @cakephp. Thanks for cutting the legs off this blog post @cakephp...bastards.
Tickets and Commits
If you enjoy bug comment humor (and who doesn't?), check out this ticket (hat tip: @renan_saddam). Speaking of geek jokes, am I the only one who loves flow chart humor? Like this one of Ice Cube's "Today Was a Good Day", which kills me everytime.
In The Wild
edfriedland.com
Only a couple of new sites for this digest. First is edfriedland.com (via twitter), which is the site of bassist Ed Friendland, who presents the important question: If I'm writing my thoughts, isn't that technically quoting my brain and therefor shouldn't everything I write begin with a quotation mark?
davyvandenbremt.be
Also from Twitter is the home page of Davy Van Den Bremt, which promotes his Drupal development skills. I'll pause a moment for you to ponder that.
In The Blogs
Mini Cookbook
You know when you're at a coffee shop and you see a hot girl sitting in the corner trying to finish an important Cake app, only the wifi is broken and she can't pull up the CakePHP manual to figure out how ACL works? And she just wants to be done so that she can get blasted and hook up with some random guy and you're thinking "I'm a random guy." If only you had access to the Cookbook on your handheld mobile device. Thanks to m3nt0r you will never miss one of these opportunities again. The mobile version of the Cookbook works best on the iPhone, which is fine because if you're sporting anything else you don't really have a shot with that chick anyway.
Whitelist vs Blacklist
If you ever thought to yourself "man, I wish there was a series of blog posts covering the best way to implement field blacklisting in CakePHP's Model::save," then this is your week. First up is teknoid's quick way. m3nt0r countered by moving the functionality into AppMode by overriding the default save call. But that approached changed the parameters for Model::save, so cakebaker presented another approach showing how it is done in Rails.
Reverse Routing Cache
In a continuation off a couple of posts mentioned in the last digest, Renan Gonçalves posted a modified version of my code. If only one of us had commit access and could sneak this into the core code...
In The Groups
Summer of Everything But CakePHP
CakePHP was submitted as a mentor for Google's Summer of Code, but didn't make the cut. 150 projects were accepted, including the Derek Zoolander's Center for the Study of Complex Systems and Stuff. My favorite part of their description is "Note that we prefer students who will work on the project "above and beyound" the minimal agreed amount of effort..." Apparently "above and beyound" doesn't involve using spell check. And before you bitch at me for nitpicking this as a typo, note the "i" between the "o" and the "u" on your keyboard.
Uses
I thought this thread was interesting mostly for Miles J's statement that having poor performance from multiple models in a controller "only applies if you have like 10+ models in the $uses var." Look for a future post where I put this to the test. Mostly to make up for the fact that I completely wiffed and didn't mention $uses in my 8 Ways to Speed Up CakePHP Apps post.
In The Bakery
I'm pretty sure there wasn't anything new and if there was it must have not have been very interesting.
I'm Out!
Don't forget to subscribe to my feed or follow me on twitter.
As always if you think I missed something leave a comment. Or if you do something interesting and want it included in the next digest, send me an email.

11 Comments
Okay, okay... keeping the day job. ;-)
My reading comprehension skills are steadily declining. I fixed up that first part a bit. Thanks.
Just one correction: I already have commit access but, unfortunatly, I can't sneak our little piece of gold into the core code. :(
By the way, great article and keep doing it.
Invariably, when I read these digests I end up at some point involuntarily laughing out loud (literally). Since I assume there are others who have similiar reactions, it means alot of offices are experiencing interruptions in productivity due to some geek laughing out loud at a screen in the middle of the morning.
You might consider placing a "Not Safe for Work" warning at the top of this digest.:-))
Anyway, don't worry about the corrections. Fixed once again.
http://techno-geeks.org/2009/03/authenticating-a-cakephp-app-against-a-cakephp-webservice/
They created their own login "service" using CakePHP tools to validate via XML.
I'm still digesting (that was for you, Nate) but I'm super stoked to have found your site and cake digest. Good stuff!
The amount of models attached to $uses solely depends on how many associations each model has and what works best. If you have 1 model with 15 associations (15 models), it is basically the same as 15 models with no associations.
But I typically found that if you are having to put more then 10 models in $uses, its best to use ClassRegistry() or loadModel().
Add new comment