Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在从具有相同列结构的两个不同表中获取两个结果集。
是否可以对这两组数据执行类似 array_merge 的操作并将它们合并为一组,以便我可以在视图中对结果进行分页?
一种可能的解决方案是使用 CakePHP 的Hash类和combine函数。
Hash
combine
https://book.cakephp.org/3.0/en/core-libraries/hash.html