0
votes

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?

1
You should probably look into using a union query.ndm

1 Answers

0
votes

One of the possible solutions is to use CakePHP's Hash class and combine function.

https://book.cakephp.org/3.0/en/core-libraries/hash.html