Welcome Guest, Not a member yet? Register   Sign In
pagination with parameters! (filtering)
#6

(This post was last modified: 08-30-2021, 12:43 PM by IvanBell.)

I have a website that combines pagination and filtering. You can use GET method, receive the data in controller, unset "page" key and proceed to the model with the rest. Please see my old question, perhaps it will be of help for you:
Query Builder "Where" with Array

Another way is to add an extra key to all inputs in your form. So you can have inputs like
Code:
<input name="filter[price] value="" />

Code:
<input name="filter[category] value="" />
and so on. Then in controller you can pass to the model
Code:
$this->request->getGet('filter')
.
This way page will not be included
Reply


Messages In This Thread
RE: pagination with parameters! (filtering) - by IvanBell - 08-30-2021, 12:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB