CakePHP Digest #23 - Moving Day

Posted by Matt on Tue, Jan 12 2010

News

Before We Get Going

I've accumulated a lot of links since the last digest (two months between posts will do that). As a result some links that would normally be included didn't make the cut.  The good news is you'll never know if your blog post/code snippet was cut, so don't feel bad.  Although if you posted something CakePHP related since Thanksgiving then you can assume I saw it.  And if it's not included then you can assume I didn't deem it worthwhile.  So maybe you should feel bad...

GitHub and Lighthouse

CakePHP development moved to GitHub (Yea!) and Lighthouse (Lightwhat?).  Plus new plugins (localized and datasources), which are already on version 0.2 (that puts them on target for 1.0 around Jan 2024).

Cake Prayer

Via @predominant: A CakePHP Prayer

New CakeDC

Cake's parent company CakeDC got a fancy new design (via @PhpNut).  Also you can support CakePHP by grabbing the new migrations plugin for a $15 "donation".

New Default CSS

@mark_story posted a couple screenshots of what could be the new default style sheetHAWT!

Sites

validcake.com

I actually don't think this a Cake site, but it does generate the validation array for Cake models

checkoutmygarage.net

From @modethirteencheckoutmygarage.net - Yes, it is pretty much what you would think it is: A site for uploading pics of your garage.  I might post some shots of my garage - boxes of old baby cloths/toys piled on unused exercise equipment.  Although I don't think that's what they're going for.

vegasorange.com

From @mgiglesias: A site for Vegas real estate.  I used to love Vegas, but haven't been in years.  I hear it's kind of lame now and Montreal is the hip gambling spot.  Hey, speaking of Canada...

harbourstation.ca

From @???? (I got this from twitter, but didn't note who posted it.  I suck): A Canadian arena that hosts Canada's two most popular forms of entertainment: hockey and Gordon Lightfoot. I'll leave it as an exercise to the reader to determine which is the most popular.

iqlink.com.au

From @predominantiqlink.com.au - A product info site for sweet looking ATM that dispenses documents instead of cash (or something like that).

In The Blogs

Loading Helpers As Needed

Jeremy Burns has a great tip on how to load a helper for a specific action rather then the whole controller. This is nothing new, but it's worth mentioning again.

Better Zip Code Validation

Jamie Nay posted a short validation routine for handling various international postal codes.  This is mostly for 1.2 as the localized plugin mentioned above handles these in 1.3.

Bye-bye $cakeDebug

Teknoid has a post marking then of the $cakeDebug variable and some bits on how the new system works.

Code

Fixture Factory

I'm going to screw up the description on this one, but here we go: Fixture Factory is a CakePHP plugin for programatically creating fixture at the top of your unit tests, rather then relying on database records or _fixture files.

CakePHP to LI3 Bridge

This is more of a LI3 plugin for porting Cake apps bit by bit.  Here's the official descprition:

The li3_cake plugin allows you to develop applications that use CakePHP and Lithium together, leveraging classes and exposing resources using both frameworks in unison.

Be honest: you threw up a bit in your mouth reading that.  That description is a "synergy" away from qualifying for the enterprisey buzzword hall of fame.

Trees

If you're into trees then last month must have been like Christmas for you.  Also if you're into Christmas, then last month must have been like Christmas for you.  First we have Neil Crookes TreeCounterCacheBehavior plugin.  If you're smart you're probably asking:

@AD7six: why have a (total)child_count field at all. no-of-children = (rght - lft -1)/2 .

And obviously the answer is:

@neilcrookes: ah, I remember now, it's for when I add scope functionality

@neilcrookes: when I say remember, I mean, that's the excuse I just came up with for being too dumb to realise no-of-children = (rght - lft -1)/2

Also from Jamie Nay is his post "Adding Better Scope Limiting to CakePHP 1.2’s Tree Behavior".  One more: BTree Behavior from jas osborne, which claims to be faster then the Cake Tree Behavior when dealing with overgrown trees.

I'm Out!

And on that note 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.

Posted in CakePHP

14 Comments

JadB said on Jan 13, 2010
Thanks Matt!

A couple you might have missed:
Debuggable's Authsome: http://github.com/felixge/cakephp-authsome

and a shameless plug to my own:
Capcake plugin: http://github.com/jadb/capcake

NamedScope plugin: http://github.com/jadb/named_scope

Localized plugin: http://github.com/jadb/localized
JadB said on Jan 13, 2010
Good to note that the localized plugin is a backport of Cake's plugin to use with 1.2 - so you don't have to wait until you start using 1.3 to try it out :)
JadB said on Jan 13, 2010
and capcake is a gem not a plugin, sorry
Matt said on Jan 13, 2010
Yea, I really wiffed on Authsome. Didn't even have it in my notes. I'll blame it on being released the day after Xmas. Xmas killed me this year - I was stupid sick for a week after.
Matt said on Jan 13, 2010
Hey JadB,
Your plugins all look really cool. I've never seen any of them before. Where are you announcing changes/new releases?
JadB said on Jan 13, 2010
Announcing on twitter (@jadb) (among other ramblings) or one can just watch the repos or follow me on Github.
Brendon Kozlowski said on Jan 13, 2010
I think Matt follows #cakephp searches on twitter, if you don't hash-pound and bag'n'tag that thing, he might miss it. ;)
Neil Crookes said on Jan 13, 2010
Thanks for highlighting my dumbness to the hundreds of readers of you blog Matt ;-)
Matt said on Jan 13, 2010
That's why I'm here :)
primeminister said on Jan 13, 2010
Thanks Matt for the updates. Did you know we had a CakePHP NL meetup yesterday? ;)
Matt said on Jan 13, 2010
Yea, I had it in there originally, but since I wasn't going to get this published in time I pulled it. If someone does a writeup of how it went I'll include in the next one.
Jose Diaz-Gonzalez said on Jan 13, 2010
So sad none of my code ever makes it here anymore, and I'm damned if I don't make a lot of it :P

For loading a helper in one action, take a look here for a solution to component loading in one action: http://josediazgonzalez.com/2009/08/14/adding-a-helper-behavior-component-on-the-fly/ It's kind of iffy, I know, but it does work :P.
Matt said on Jan 13, 2010
Your API for plugins article ( http://josediazgonzalez.com/2009/11/27/thoughts-an-api-for-plugin-installation ) was good. I had meant to mention it...got lost in the shuffle though.
Guillaume said on Jan 13, 2010
I've got a small site that has been live for some months, made with CakePHP. It's here:http://www.almost-musique.com
It even uses code of yours! (your html_cache helper...). It was made for a French music label. I'd be very proud if you could feature it here!