Welcome Guest, Not a member yet? Register   Sign In
Use pagination in controller
#1

Hello
When i use pagination library,i have to use _remap?
Because when my address be localhost\myapp\users\page\1 (in this url,users is controller) it get error that not found page
Why?
Reply
#2

(10-27-2017, 12:19 PM)omid_student Wrote: Hello
When i use pagination library,i have to use _remap?
Because when my address be localhost\myapp\users\page\1 (in this url,users is controller) it get error that not found page
Why?

you don't have to use remap. You can configure routes to point to a method that accepts data. I'm guessing you are loading are loading an index method?
Reply
#3

(10-28-2017, 04:14 PM)ChicagoPhil Wrote:
(10-27-2017, 12:19 PM)omid_student Wrote: Hello
When i use pagination library,i have to use _remap?
Because when my address be localhost\myapp\users\page\1 (in this url,users is controller) it get error that not found page
Why?

you don't have to use remap. You can configure routes to point to a method that accepts data. I'm guessing you are loading are loading an index method?

It solved,
I use function with parameter $page,$offset
And i was forced redirect index page to other function because it didn't accept parameter
Reply




Theme © iAndrew 2016 - Forum software by © MyBB