Remove key db

This commit is contained in:
Michael RICOIS 2014-04-24 09:58:02 +00:00
parent ef774b522e
commit a14022b977

View File

@ -91,8 +91,7 @@ class ProfilController extends Zend_Controller_Action
$criteres = $request->getParam('criteres');
$doublon = $request->getParam('doublon');
$db = Zend_Registry::get('db');
$profilM = new Application_Model_Profil($db);
$profilM = new Application_Model_Profil();
$data = array(
'reference' => $reference,
'criteres' => json_encode($criteres),
@ -130,9 +129,7 @@ class ProfilController extends Zend_Controller_Action
$idprofil = $request->getParam('idprofil');
$idfile = $request->getParam('idfile');
$db = Zend_Registry::get('db');
$commandesM = new Application_Model_Commandes($db);
$commandesM = new Application_Model_Commandes();
$data = array(
'idProfil' => $idprofil,
@ -153,8 +150,7 @@ class ProfilController extends Zend_Controller_Action
$request = $this->getRequest();
$idfile = $request->getParam('idfile');
$db = Zend_Registry::get('db');
$commandesM = new Application_Model_Commandes($db);
$commandesM = new Application_Model_Commandes();
$commandesM->delete("id=$idfile");
$this->redirect('/');