I am currently grabbing two result sets from two different tables with the same column structure.
Is it possible to do something like array_merge on these two sets of data and merge them into one set so that I can paginate the results in the view?
I am currently grabbing two result sets from two different tables with the same column structure.
Is it possible to do something like array_merge on these two sets of data and merge them into one set so that I can paginate the results in the view?
Copyright © 2021 Jogjafile Inc.
One of the possible solutions is to use CakePHP's
Hashclass andcombinefunction.https://book.cakephp.org/3.0/en/core-libraries/hash.html