I want to paginate two database tables having same structure(eg SMS and MMS) which are not related to each other. I want to retrieve records from both the table with some condition (eg records having same date) . suppose there are (5 SMS and 10 MMS) as a result set. How will i paginate both tables and display it in a single instance using cakephp paginate function ?
I want to paginate two database tables having same structure(eg SMS and MMS) which
Share
I will suggest why don’t you use
single table for bothif they are having same table structure. And with the help of flag or something you can differentiateSMS&MMS?By this cakephp
automaticallyhandle all default functionality (like pagination , sorting etc..) & it will be easier for you.I hope this helps you 🙂