Consultez la FAQ sur le ZF avant de poster une question
Vous n'êtes pas identifié.
Pages: 1
Bonjour,
Quelqu'un peut me dire comment mettre une image en option d'un bouton radio ?
La je fais :
$idFormat=$this->createElement('radio', 'idFormat',array('separator'=>' ')); $tabIdFormat=array(); foreach($tabFormat as $formatDvd){ $tabIdFormat[$formatDvd->idFormat]="<img src='images/".$formatDvd->src."' alt='".$formatDvd->designation."' width='".$formatDvd->largeur."' height='".$formatDvd->hauteur."' title='".$formatDvd->designation."' />"; } $idFormat->addMultiOptions($tabIdFormat);
Et ça m'affiche :
<label for="idFormat-1"><input type="radio" name="idFormat" id="idFormat-1" value="1"><img src='images/dvd.png' alt='DVD' width='75' height='35' title='DVD' /></label>
du coup je vois pas mes images mais les balises.
Merci.
Dernière modification par shivato (28-01-2010 15:14:32)
Hors ligne
il faut mettre le paramètre "escape" à false de ton décorateur
Hors ligne
Merci ça marche.
Hors ligne
Pages: 1