Last active
December 14, 2015 18:09
-
-
Save mmhan/5127558 to your computer and use it in GitHub Desktop.
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 | |
// Let's say $result is the data that you want to show with pagination. | |
//First get all the NRs of the result | |
$nr = Set::extract("{n}.AF.NR", $data); | |
//Then get the names of all the companies for the given NR | |
$companies = $this->FIRMA->find('list', array('conditions' => array("NR" => $nr) ) ); | |
?> | |
<!-- IN YOUR VIEW FILE to echo company name --> | |
<?php echo $companies[$NR] ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment