Skip to content

Instantly share code, notes, and snippets.

@guinslym
Created January 11, 2014 08:14
Show Gist options
  • Select an option

  • Save guinslym/8368360 to your computer and use it in GitHub Desktop.

Select an option

Save guinslym/8368360 to your computer and use it in GitHub Desktop.
How can I add 2 Order conditions to retrieve datas
<?php
public function listImage(){
$listImages = $this->Image->find('all',
array(
'order' => array(
'Image.id' => 'desc'),
'limit' => 18));
return $listImages;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment