Suppression profil

This commit is contained in:
Michael RICOIS 2013-10-11 12:48:30 +00:00
parent 4f70869ecf
commit dabd2fe935

View File

@ -147,7 +147,18 @@ class ProfilController extends Zend_Controller_Action
public function delAction()
{
$request = $this->getRequest();
$idprofil = $request->getParam('idprofil');
$db = Zend_Registry::get('db');
$commandesM = new Application_Model_Commandes($db);
$data = array(
'idProfil' => $idprofil,
);
$commandesM->delete("id=$idfile");
$this->redirect('/');
}
public function helpAction()