diff --git a/application/controllers/ProfilController.php b/application/controllers/ProfilController.php index d9f778c8..200ae5ea 100644 --- a/application/controllers/ProfilController.php +++ b/application/controllers/ProfilController.php @@ -14,11 +14,31 @@ class ProfilController extends Zend_Controller_Action public function detailAction() { + $request = $this->getRequest(); + $id = $request->getParam('id', null); + require_once 'Scores/Enrichissement.php'; $data = new Enrichissement(); $this->view->assign('elements', $data->getDico()); + + if ( $id != null ) { + $profilM = new Application_Model_Profil(); + $profil = $profilM->find($id); + } + + } + public function createAction() + { + $request = $this->getRequest(); + $id = $request->getParam('id', null); + + require_once 'Scores/Enrichissement.php'; + $data = new Enrichissement(); + $this->view->assign('elements', $data->getDico()); + } + public function saveAction() { $this->_helper->layout()->disableLayout(); diff --git a/application/views/scripts/profil/create.phtml b/application/views/scripts/profil/create.phtml new file mode 100644 index 00000000..b69b9560 --- /dev/null +++ b/application/views/scripts/profil/create.phtml @@ -0,0 +1,125 @@ + + +