posted 10/23/2008 by Chris
Comments: 0

We wrote and submitted 2 articles (1 and 2) to cakephp.org's bakery and they were both published.  One is the tutorial Captcha Component with Securimage, which explains how to integrate the Securimage class with CakePHP.  The other is the tutorial Bake ROT13 Encoded "mailto:" Links, which explains how to write a CakePHP helper to fool spambots...

posted 09/30/2008 by Chris
Comments: 0

This was originally a tutorial I wrote for bakery.cakephp.org, but it didn't get published because it was "more a general PHP tip than a CakePHP article."  Haters.

Anyways, if you're using the function usort inside of a cakephp controller and are receiving errors like "Warning: usort() [function.usort]: Invalid comparison function in...", then you may be referencing your sorting function incorrectly.  Also useful examples showing how to use Unix timestamps (date/mktime)...