tu es en quelle version de CakePHP ?
1.1 ?
En 1.2, ça, ça marche :
<?php echo $form->radio('DemMateriel/Motif_Demande',
array("Réparation", "Remplacement", "Dotation"), array('value'=>1) )?
>
En 1.1, ça serait plutôt ça :
HtmlHelper::radio($fieldName,$options,$inbetween = null,
$htmlAttributes = array(),$ return = false)
<?php echo $form->radio('DemMateriel/Motif_Demande',
array("Réparation", "Remplacement", "Dotation"), null,
array('value'=>1);?>
(non testé, en particulier je ne suis pas sûr du format du tableau
avec les libellés des boutons radio)
Guillaume aka djenvert
--
http://cherryonthe.popnews.com
On 1 sep, 16:51, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Personne n'a de solution?
>
> On 1 sep, 10:58, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Bonjour, j'ai essayé votre solution mais cela ne marche pas :
>
> > Notice: Array to string conversion in /var/www/cake_pompiers/cake/libs/
> > view/helpers/html.php on line 516
>
> > si je met le '<br>' cela marche correctement (ça fait donc un retour à
> > la ligne entre chaque radiobutton) mais aucun radiobutton de
> > selectionné :/
>
> > On 23 août, 09:49, "Mehdi AMINI" <[EMAIL PROTECTED]> wrote:
>
> > > Salut,
>
> > > > <?php echo $html->radio('DemMateriel/Motif_Demande',
> > > > array("Réparation", "Remplacement", "Dotation"), '</br>' )?>
>
> > > Le '<br>' est faux, il devrait y avoir un tableau "attribute".
>
> > > <?php echo $html->radio('DemMateriel/Motif_Demande',
> > > array("Réparation", "Remplacement", "Dotation"), array('value'=>2) )?>
>
> > > Mehdi
--~--~---------~--~----~------------~-------~--~----~
Groupe "Cakephp-fr".
Adresse : [email protected]
Pour résilier : [EMAIL PROTECTED]
Pour les options : http://groups.google.com/group/cakephp-fr?hl=fr
-~----------~----~----~----~------~----~------~--~---