mysql - Pagination w/ query data in url for initial search submission not holding but all subsequent pages have url params -


how can paramaters passed url on first submission?

all subsequent pagination requests (such when hit next>>) display proper url parameters (/35/0/...):

.../plans/search/35/0/0/0/97378/page:2 

but on first search results page, parameters not passed (but results correct), url looks this:

.../plans/search/ 

so when try sort on first page:

<?php $this->paginator->sort('sort monthly cost','monthly_cost');?> 

the results cleared because no parameters present. every subsequent page (starting @ page:2) sort works fine because params in url.

i need know how pass params url on initial search.

i've been trying variations of in view:

$this->paginator->options(array('url' => $this->passedargs)); 

but can't them pass..

solved!

in view, had instance of:

options = array('url'=>$searchdetails); ?>

below paginator counter near page footer.

i took same:

options = array('url'=>$searchdetails); ?>

and placed in header of view, , solved issue.

it appears vars not being saved until initiated pagination clicking next>>, adding @ header saves on first search.

so removed footer instance, , have:

options = array('url'=>$searchdetails); ?>

at header of page, , carries values url expected : )


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -