Welcome Guest, Not a member yet? Register   Sign In
Can't get pagination working
#3

(This post was last modified: 12-20-2015, 10:01 PM by skunkbad.)

First thing I see is that you are trying to implement paging on the index method of a controller, and this doesn't seem possible. Try changing to a different name for your method.

Next, in order to get pagination working easily, use a page parameter for the method, like this:


PHP Code:
public function something$page ){
   // ....



So you are now able to set the pagination base URL to "page/something", and your $page variable is easily used.

If you feel you must use the index method, you'll want to look at the "remapping" feature in the docs.
Reply


Messages In This Thread
Can't get pagination working - by ditolakgebetan - 12-18-2015, 04:19 AM
RE: Can't get pagination working - by rymesaint - 12-20-2015, 04:50 PM
RE: Can't get pagination working - by skunkbad - 12-20-2015, 05:26 PM
RE: Can't get pagination working - by mike7418 - 12-27-2015, 04:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB