Exemplo n.º 1
0
<?php

if (count($listChaine)) {
    foreach ($listChaine as $chaine) {
        var_dump_me($chaine);
    }
} else {
    echo "<h2>Aucune chaine radio trouvee !!</h2>";
}
 public function add(Chaine $chaine)
 {
     var_dump_me($chaine);
     $req = $this->_db->prepare("INSERT INTO radio (`nom`, `flux`, `logo`) VALUE (:nom, :flux, :logo)");
     var_dump_me($req->execute(array(':nom' => $chaine->getNom(), ':flux' => $chaine->getFlux(), ':logo' => $chaine->getLogo())));
 }