DELOCALIZER YOU ARE THE GOD!!

IT WORKS, IT FU**ING WORKS!!

THANK YOU SO MUCH!!


On 2 Set, 05:23, delocalizer <[email protected]> wrote:
> You can specify 'id' directly in input method like this:
> $form->input('User.SecurityAccess.'.$aco_id, array(
>     'id'=>"UserSecurityAccess$aco_id",
>     ....)
> );
> But the reason the problem is happening in the first place the syntax
> of your input fieldname, with $aco_id at the end... try this instead:
> $form->input('User.'.$aco_id.'.SecurityAccess, array(
>     ...)
> );
>
> On Sep 2, 6:28 am, ProgDario <[email protected]> wrote:
>
>
>
> > You're right brian, two radios for every group, so the two radios
> > shown have different ids but another group has the same id.
>
> > Any ideas to correct this?
>
> > Thanks!!
>
> > On 28 Ago, 17:12, brian <[email protected]> wrote:
>
> > > I think the problem is not so much the value of the labels' "for"
> > > attribute (NOT the id, which it doesn't have) but the id of the radio
> > > elements. There are several groups of these, so there are several
> > > radio buttons with the same id.
>
> > > On Thu, Aug 27, 2009 at 10:25 PM, delocalizer<[email protected]> 
> > > wrote:
>
> > > > Do you mean the name is the same? Because it is supposed to be - both
> > > > buttons provide a value to the same field.
> > > > What is the symptom of your problem?
>
> > > > On Aug 27, 9:19 pm, "[email protected]"
> > > > <[email protected]> wrote:
> > > >> HI,
>
> > > >> I can't resolve a strange problem. This is my code:
>
> > > >> echo $form->input('User.SecurityAccess.'.$aco_id,
> > > >>                   array
> > > >>                   (
> > > >>                     'div' => false,
> > > >>                     'label' => false,
> > > >>                     'type' => 'radio',
> > > >>                     'legend' => false,
> > > >>                     'default' => $selected,
> > > >>                     'options' => array('allow' => " {$allow}",
> > > >> 'deny' => " {$deny}")
> > > >>                   )
> > > >>             );
>
> > > >> I try to create a set of radio groups, every group has 2 raàdio
> > > >> buttons. I want taht every radio group has different id in their
> > > >> label, so the user can click directly on the label, BUT CAKE SEEMS TO
> > > >> PUT the same id in the code. This is the resulting code:
>
> > > >> <input type="radio" name="data[Group][SecurityAccess][4]"
> > > >> id="GroupSecurityAccessAllow" value="allow"  />
> > > >> <label for="GroupSecurityAccessAllow"> Allow</label>
>
> > > >> <input type="radio" name="data[Group][SecurityAccess][4]"
> > > >> id="GroupSecurityAccessDeny" value="deny" checked="checked"  />
> > > >> <label for="GroupSecurityAccessDeny"> <span style = 'color:
> > > >> red'>Deny</span></label>
>
> > > >> The other pairs of radio buttons has the SAME LABEL ID.
>
> > > >> ANY IDEAS?
>
> > > >> Tnx!! AS?
>
> > > >> Tnx!!- Nascondi testo citato
>
> > > - Mostra testo citato -- Nascondi testo citato
>
> - Mostra testo citato -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to