Reset pagination on when filtering rows

Hi I have an index view that displays a list of records. I also have a search / filter button to filter the rows down based on a search filter. Originally the data has ten pages of data but the filtered data that is rendered only displays one record, but the pagination at the bottom of index.ctp still shows as if there are ten pages. How do I reset the pagination to the new record count?

I figured this out thanks

feel free to post the solution for future reference

1 Like