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)... |
POPULAR BLOG TAGS
bakery
debuggeddesigns
release
rot13
php5tube
color
mbta
mit
boston
defcon
science
germans
class
drum machines
snowboard
charlie
open source
ableton
orwell
trice
mailto
google
security
code
captcha
1984
whoami
geek
cakephp
usort
encryption
skateboard
published
privacy
spam
brain
youtube
launch
routes
magazine
gmail
quicksilver
flash
hobnox
php
as
sports
regular expressions
email
general
|