Using the form helper <?php $colors = array( 'status1' => 'status1', 'status2' => 'status2', 'status3' => 'status3' ); print $form->select('Statuslist/statuscss', $colors, $this- >data['Statuslist']['statuscss'], '', false); ?>
outputs <select name="data[Statuslist][statuscss]" 0="0" id="StatuslistStatuscss"> <option value="status1">status1</option> <option value="status2">status2</option> <option value="status3">status3</option> </select> How can I make the form helper output this?: <select name="data[Statuslist][statuscss]" 0="0" id="StatuslistStatuscss"> <option class="status1" value="status1">status1</option> <option class="status2" value="status2">status2</option> <option class="status3" value="status3">status3</option> </select> Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en