Thanks, I probably have to subclass the FormHelper, as hiromi pointed out 
in an earlier reply, since the <label>'s "for" attribute is kinda required, 
and the radio button IDs need to be generated in a loop.

At first I tried creating a custom configuration of $tags that the 
HtmlHelper would be using, but I quickly figured out that there was no 
<label>+<input> specific configuration in the custom tag array.

On Tuesday, June 18, 2013 5:37:14 PM UTC+8, LDSign wrote:
>
> Hi
>
> Have a look at the form helper options (
> http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html).
>
> Using "format", "after","before" and "between" even complex wrapping is 
> possible. Ive used this in combination of an extended FormHelper to make 
> the markup for bootstrap (including errors, tooltips a.s.o.), but staying 
> as close to the core as possible.
>
> Cheers!
>
> Frank
>
> Am Dienstag, 18. Juni 2013 06:25:33 UTC+2 schrieb OJ Tibi - @ojtibi:
>>
>> Good day, folks!
>>
>> I was wondering if there was any quick option of making label tags wrap 
>> the inputs they're associated with, instead of sitting beside the input 
>> itself (e.g., labels for radio buttons generated by FormHelper->input() or 
>> FormHelper->radio() don't actually wrap the radio buttons they're 
>> associated with).
>>
>> Reason I'm asking this is that certain front-end frameworks like ZURB 
>> Foundation require labels to wrap radio buttons for the Custom Form 
>> features to work.
>>
>> Cheers,
>> OJ
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to