CakePHP session data cleared on paginator sort -


my session data being saved in form expected.

however, when run sort on column of results, form session values cleared.

i calling in search form through en element it's used on specific locations of site.

does know why pagination clearing out session? standard cake?

the paginator sort elements link generated paginator , won't consider of form data. first thing need make sure you're doing tell paginator include url paramters current page in url generates. put anywhere in view before call of $paginator functions.

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

secondly, make sure search parameters being included in url. sounds aren't. answered question on best practices of search result urls here: cakephp search results best practices


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -