Hi,
i'm writing a custom export function for one of my backend records lists. I need to be able to get the values of the filter so that I export the records that are currently on display only.
How can I get the value of the filter fields?
Thanks
Hi,
i'm writing a custom export function for one of my backend records lists. I need to be able to get the values of the filter so that I export the records that are currently on display only.
How can I get the value of the filter fields?
Thanks
They are stored in the session, e.g.
These will then contain the search array, sorting array and filter array. You can inspect the structure with print_r();Code:$session = $this->Session->getData(); $search = $session['search']; $sorting = $session['sorting']; $filters = $session['filter'];
Bookmarks