Welcome Guest, Not a member yet? Register   Sign In
how to create paging with multi different table?
#1

[eluser]arro[/eluser]
hii all...
I have problem with using paging with multiple table.
I have 3 table (post,place,event) with no association with other, so I show in view with array sort by date..
how can I get the different limit of them?
example: I give limit 10 per page so in my view like this.

1.post
2.post
3.post
4.place
5.event
6.place
7.post
8.post
9.event
10.event

from example above I got 5 post,2 place and 3 event.
this make me confused to set the limit in my model of 3 tables, because they have different limit.
Thanks for any help and sorry for my english coz I use balinese everyday Big Grin
#2

[eluser]arro[/eluser]
any idea?




Theme © iAndrew 2016 - Forum software by © MyBB