Maybe this is a little late but perhaps it will save some other soul
some trial and error.
I'm using 1.2 branch so this may not work for 1.1.
To change the default class name for the div that surrounds the input
when using form helper use the options array like so:
echo $form-
>input('tst_input',array('div'=>array('class'=>'tst_input')));

which results in this being the output:
<div class="tst_input"><label for="tstTstInput">Tst Input</
label><input name="data[tst][tst_input]" type="text" value=""
id="tstTstInput" />

instead of this (the default if not using the options array):
<div class="input text"><label for="tstTstInput">Tst Input</
label><input name="data[tst][tst_input]" type="text" value=""
id="tstTstInput" /></div>

The same goes for the label and the input class as well. All that is
left for you then is to CSS-it to your hearts content...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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