Du kan bruge virtualFields
$this->ChatCategoryImage->virtualFields = array('Frequency' => 'hits/(DATEDIFF(NOW(),created))');
ændre måden at bestille
$order = array('Frequency' => 'desc');
Du kan bruge virtualFields
$this->ChatCategoryImage->virtualFields = array('Frequency' => 'hits/(DATEDIFF(NOW(),created))');
ændre måden at bestille
$order = array('Frequency' => 'desc');