I have a small script that is trying to change or set one of the named parameters for the paginator.
<? echo $this->Html->scriptStart(array('inline'=>false)); ?>
$('.filter-button').on('click', function() {
var thisFilter = $(this).data('filter');
<?php $this->request->params['named']['filter'] = ??? ?>
});
<?php echo $this->Html->scriptEnd(); ?>
I'm trying to figure out what the best way to set the named paramter filter
to the variable thisFilter
that was set by javascript (jQuery here)