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
flex
cakephp
debuggeddesigns
guide
quicksilver
usort
skateboard
routes
debate
frameworks
orwell
rot13
flash
publish
swf
sports
encryption
bakery
privacy
as
deprecated
trice
captcha
geek
php
bug
code
general
germans
launch
redbull
mailto
release
1984
regular expressions
brain
upgrade
whoami
class
published
redirect
magazine
security
vendor
drum machines
resource
spam
snowboard
open source
color
|