I'm using paginator component of paramType
is querystring
, and specified multiple order in action before taking results from $this->paginate()
as like this
$this->paginate['order'] = array(
"field1" => "Asc",
"field2" => "Desc",
"field3" => "Asc",
);
$this->set('results', $this->paginate('ModelName'));
When i click on page 2 link it's generating a url like ?page=2&sort=field1&direction=Asc
I want to remove the sort key from query strings and need to fetch the results by applying order i've specified.
Could anybody help me on this ?
Thanks