Created
November 1, 2010 14:59
-
-
Save jaredhoyt/658293 to your computer and use it in GitHub Desktop.
Pagination with sorting on deep associations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->paginate = array( | |
'limit' => 50, | |
'conditions' => $conditions, | |
'contain' => array( | |
'ExceptionWorkflowLog', | |
'Procedure(id,cpt,expected_amount,allowed_total,difference_amount)', | |
'Procedure.Claim(id,number)', | |
'Procedure.Claim.Group(abbr)' | |
) | |
); | |
$this->set('exceptions', $this->paginate('PaymentException')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo $paginator->sort('Claim #', 'Claim.number'); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment