1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
public function ajouterAction()
{
$form = new Admin_Form_AjouterModifierEtudiant();
$this->view->form = $form;
$dbTable = new Admin_Model_DbTable_Etudiant();
if($this->getRequest()->isPost())
{
if($form->isValid($request->getPost()))
{
$data = array(
'nom' => $form->getValue($nom),
'prenom' => $form->getValue($prenom),
'cne' => $form->getValue($cne),
'promotion' => $form->getValue($promotion),
'filiere' => $form->getValue($filiere) );
$dbTable->insert($data);
}
}
} |
Partager