Suppression profil
This commit is contained in:
parent
dabd2fe935
commit
7c064101ab
@ -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('/');
|
||||
|
Loading…
Reference in New Issue
Block a user