コード例 #1
0
ファイル: ajaxControler.php プロジェクト: MontreArt/origin
/**
* @brief Fonction qui récupère le commentaire choisi
* @access public
* @author David Lachambre
* @return void
*/
function recupererUnCommentaire()
{
    $commentaire = new Commentaire();
    $commentaireUnique = $commentaire->getCommentaireById($_POST["idCommentaire"]);
    echo json_encode($commentaireUnique);
    //Encode le tableau retourné par la requête en Json.
}