Reply myself.... Place the protected function inside the class, and call:
uasort($result, array($this, 'orderArrayNatural')); Thxs anyway j.padron wrote: > > Hi, > > I have a DB model class (extends Zend_Db_Table_Abstract) from where I > return data. In one of the methods I have to uasort(array, callback) > arrays (several merged). The problem is that I don't know where to put and > declare the "function compare" and call it as string like uasort requiere. > > Where must I put this function, inside dir estructure, in order to be > accesible from my model? > > Thanks in advance. > Jorge > -- View this message in context: http://www.nabble.com/uasort%2C-or-functions-that-requiere-a-callback-tp25229618p25230702.html Sent from the Zend Framework mailing list archive at Nabble.com.
