/** * Ajax method to store theatre search options to the session. * * @TODO: should the keys for this not be validated? */ public function actionSetDiaryFilter() { foreach ($_POST as $key => $value) { YiiSession::set('theatre_searchoptions', $key, $value); } }
/** * Store the filter item in the user session. * * @param $field * @param $value */ public function setFilter($field, $value) { YiiSession::set('waitinglist_searchoptions', $field, $value); }