Welcome Guest, Not a member yet? Register   Sign In
Trying to call uasort from within a model method
#4

[eluser]Rob Gordijn[/eluser]
well, I don't think the scope is the same... uasort expects a valid callback. Normal usage is a 'normal' function, not a method within the class.

maybe is array($this,'my_sort'); valid, but I doubt it since $this should be a string.
maybe you can use __CLASS__ for the current classname (but does calling uasort then create a new object of the class?)

[edit] weird language mixups


Messages In This Thread
Trying to call uasort from within a model method - by El Forum - 06-09-2010, 06:30 AM
Trying to call uasort from within a model method - by El Forum - 06-09-2010, 06:37 AM
Trying to call uasort from within a model method - by El Forum - 06-09-2010, 06:42 AM
Trying to call uasort from within a model method - by El Forum - 06-09-2010, 06:50 AM
Trying to call uasort from within a model method - by El Forum - 06-09-2010, 07:21 AM
Trying to call uasort from within a model method - by El Forum - 06-09-2010, 09:02 AM
Trying to call uasort from within a model method - by El Forum - 06-09-2010, 09:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB