modification condition session
This commit is contained in:
parent
8ccae142da
commit
20b2acf8ab
@ -12,8 +12,14 @@ class ComptageController extends Zend_Controller_Action
|
||||
|
||||
$request = $this->getRequest();
|
||||
$key = $request->getParam('cle');
|
||||
$valeur = $request->getParam('valeur');
|
||||
|
||||
$session->setCritere($key, $request->getParam('valeur'));
|
||||
$sessionValeur = $session->getCritere($key);
|
||||
if(!empty($sessionValeur) and empty($valeur)) {
|
||||
$session->unsetCritere($key);
|
||||
} else {
|
||||
$session->setCritere($key, $valeur);
|
||||
}
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$user = $auth->getIdentity();
|
||||
|
Loading…
Reference in New Issue
Block a user