Hello everybody.
I really searched a lot for this, but unfortunately I wasn’t able to find solution.
I have really simple controller
<?php
return function($site, $pages, $page, $args) {
$articles = $page->children()->children()->children();
if(r::is('POST') && $data = get()) {
if(isset($data['order'])) {
$articles = $articles->sortBy('price', $data['order']);
}
}
$articles = $articles->paginate(20);
$pagination = $articles->pagination();
return compact('articles','pagination', 'data', 'args');
};
but if I go to some other page in pagination, my filter resets.
If you can just point me to some docs where can I see how to use args.
Thanks in advance