Welcome Guest, Not a member yet? Register   Sign In
pagination problem
#11

[eluser]xwero[/eluser]
jeffersonrpn use the cache function of the AR library to build the sql statement for the count_all_results method and add get method specific building functions after you called the count_all_results method.
#12

[eluser]jeffersonrpn[/eluser]
Thanks for the help. I using CI with Facade and DAO patterns to dont put query code on the controller. I have this doubt because the pagination is configured in facade, but the query is executed in DAO object.
#13

[eluser]Unknown[/eluser]
[quote author="Michael Wales" date="1216722364"]Pagination doesn't just automatically happen.

The pagination library simply helps you in generating those links at the bottom - which pass an offset to whatever method you tell it to. You then use that offset to show the "next page"[/quote]

Sorry, can you explain it a litle bit better?

Thaks.




Theme © iAndrew 2016 - Forum software by © MyBB