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