Skip to content

Instantly share code, notes, and snippets.

@pedroelsner
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pedroelsner/4d5e466f2fe227250b59 to your computer and use it in GitHub Desktop.
Save pedroelsner/4d5e466f2fe227250b59 to your computer and use it in GitHub Desktop.
Felipe - Filter Results
<?
//$this->Importacao->recursive = -1
//$this->Filter->setPaginate('contain', array('Importacaodado'));
// ou
$this->Importacao->recursive = 1;
$this->Filter->addFilters(array('filter1' => array( ect.....)));
$this->Filter->setPaginate('order', array('Importacao.id' => 'desc'));
$this->Filter->setPaginate('conditions', array($this->Filter->getConditions()));
$this->set('importacao', $this->paginate());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment