Published: Monday, January 7th, 2008
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!
Published: Thursday, November 1st, 2007

With this post I'm introducing a new segment to this blog: Cute CakePHP Trick of the Day.
This is basically going to be a learn as I learn sort of thing. There are always a bunch of little things that I want to do in CakePHP, but just haven't figured out. So every time I stumble onto something, I'll let you guys in on it.
I love the GenerateList() function. This is generally used when you have models with associations with other models. The GenerateList function is often used in these cases to populate a drop down list or a multiple select list. A typical example is a state drop down on an address form.
One problem that I have with this implementation is that it always produces a complete list and there is no empty slot. There is nothing to say that I don't want to associate anything for this entry. On a drop down list, it's impossible not to select an element. On a multiple selection list, even if the user holds CTRL and clicks to unselect the current entry, CakePHP ignores this entry.
Here's the fix. Assuming in your controller you have something like:
Share This
Published: Monday, October 29th, 2007

One thing which I usually find quite annoying is using input boxes in forms for user entered dates. Having the user manually enter date, day, month, year seems so 1997 to me. However in the interest of time, this is what most programmers slap into the web applications simply because it's easier to produce and easier to maintain.
Well here's a handful of solutions that can solve that problem for you. Create user friendly and attractive date entries with these Date Pickers. Some are just normal entries used for basic forms, while others have more database integration.
Some use the jQuery library. Others use mootools or the Yahoo! UI. No matter what your needs, you'll find something here that you can use.
Source: Online Calendars and Date Pickers [Smashing Magazine]
Popularity: 40%
Share This