Does anyone know how to add a CSS style to the Checkbox?
My controller code:
$programs = $this-Software-Program-find('list', array('fields' =
'program', 'order' = 'program ASC'));
which works as I want.
But in the view:
echo $form-input('Program',array('multiple'='checkbox'));
it just outputs:
Well, that all depends on your CSS. The first thing you need to do is
check the HTML Cake is creating. In my case, where my form has
div class=CheckboxGroup
$form-select('...', ..., null, array('multiple' = 'checkbox'))
/div
the result is:
div class=CheckboxGroup
div class=checkbox
Still no go. I used
echo $form-select('Artists', ..., null, array('multiple' =
'checkbox'));
New to this. I am using 1.2 stable.
Thanks for your help
Dave
On Jan 20, 12:56 am, brian bally.z...@gmail.com wrote:
Well, that all depends on your CSS. The first thing you need to do is
check the
The ellipses in my example were just where I left out implementation
details. You need to replace that with the variable holding your list.
form-select('Artists', $your_list, null, array('multiple' = 'checkbox'))
Also, I just noticed that your controller has:
$programs =