Ejemplo n.º 1
0
 /**
  * Suppression d'un Champ
  * @param $chpidchp identifiant a supprimer
  */
 function delete($chpidchp)
 {
     Champ_model::delete($this->db, $chpidchp);
     $this->session->set_userdata('message', formatInfo('Champ supprime'));
     redirect('listchamps/index');
 }
Ejemplo n.º 2
0
 /**
  * Suppression d'un champ
  * @param int $chpidchp
  * @param int $objidobj
  * @param int $idProjet
  */
 public function deleteChamp($chpidchp, $objidobj, $idProjet)
 {
     Champ_model::delete($this->db, $chpidchp);
     $this->session->set_flashdata('message', formatInfo('Champ supprimé'));
     redirect('editobjet/index/' . $objidobj . '/' . $idProjet);
 }