Hi
I would like to generate form field <select> with multiple option with
each row with other background colour. Rows colours should be taken
from database. Example table schema:
id
name
background_colour // in example: #f0f0f0
#controller code
$colours = $this->Colour->find('list');
$this->set("colours", $colours);
#view code
// form initialization code ...
echo $form->input("Colour.id",
array(
"type"=>"select",
"options"=>$colours,
"multiple"=>true)
);
How to set different colours for each row?
Thanks for help
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---