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