コード例 #1
0
 public function formAction($id = null)
 {
     $this->view->setVar("id", $id);
     if ($id) {
         $joueur = joueur::query()->where("id =" . $id)->execute();
         $this->view->joueur = $joueur;
         $this->view->setVars(array('Nom' => $joueur->nom, 'Prénom' => $joueur->prenom, 'Pays' => $joueur->codePays));
     }
 }