Commit de l'action de suppression des criteres

This commit is contained in:
Damien LASSERRE 2012-03-08 15:04:08 +00:00
parent a4391f3886
commit d6b00d4063

View File

@ -22,7 +22,7 @@ Class IndexController extends Libs_Controller
public function criteresAction()
{
$this->_helper->layout()->disableLayout();
/*$this->_helper->layout()->disableLayout();*/
require_once 'Scores/SessionCiblage.php';
require_once 'Scores/Field.php';
$session = new SessionCiblage();
@ -31,5 +31,13 @@ Class IndexController extends Libs_Controller
$this->view->criteres = $session->getCriteres();
}
public function removeAction()
{
require_once('Scores/SessionCiblage.php');
$this->_helper->layout()->disableLayout();
$session = new SessionCiblage();
$session->unsetCritere($this->getRequest()->getParam('critere'));
$this->_redirect('/');
}
}