PHP code example of psa / cakephp-query-param-preserver
1. Go to this page and download the library: Download psa/cakephp-query-param-preserver library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
psa / cakephp-query-param-preserver example snippets
$this->loadComponent('Psa/QueryParamPreserver.QueryParamPreserver', [
// The action the component should be active on
'actions' => [
'index'
],
// You want to ignore the page param on pages with pagination
'ignoreParams' => [
'page'
]
]);