Suppression profil

This commit is contained in:
Michael RICOIS 2013-10-11 12:51:33 +00:00
parent dabd2fe935
commit 7c064101ab

View File

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