/** * Ajout d'un CDU */ public function addcdu() { // Insertion en base d'un CDU $model = new Cdu_model(); $model->cdulbdes = $this->input->post('description'); $model->cdulbtit = $this->input->post('titre'); $model->cdulbnum = $this->input->post('numero'); $model->prjidprj = $this->input->post('projet'); $model->save($this->db); $this->session->set_flashdata('message', formatInfo('Nouveau CDU ajouté')); // Recharge la page avec les nouvelles infos redirect('editproject/index/' . $model->prjidprj . '#cdu_' . $model->cduidcdu); }
/** * Ajout d'un Cdu */ public function add() { // Insertion en base $model = new Cdu_model(); $model->cdulbdes = $this->input->post('description'); $model->cdulbtit = $this->input->post('titre'); $model->cdulbnum = $this->input->post('numero'); $model->prjidprj = $this->input->post('projet'); $model->save($this->db); $this->session->set_flashdata('message', formatInfo('Nouveau Cdu ajoute')); // Recharge la page avec les nouvelles infos redirect('listcdus/index'); }