public function ajouterAction() { $form = new Application_Form_Album(); $form->envoyer->setLabel('Ajouter'); $this->view->form = $form; if ($this->getRequest()->isPost()) { $formData = $this->getRequest()->getPost(); if ($form->isValid($formData)) { $artiste = $form->getValue('artiste'); $titre = $form->getValue('titre'); $albums = new Application_Model_DbTable_Albums(); $albums->ajouterAlbum($artiste, $titre); $this->_helper->redirector('index'); } else { $form->populate($formData); } } }