【发布时间】:2014-06-01 19:13:25
【问题描述】:
我有以下表单元素,它会生成一个复选框:
$deliveryLocationChoices = array( '0' => 'Select if Applicable',
'front' => 'Front',
'rear' => 'Rear',
'left' => 'Left Side',
'right' => 'Right Side');
$this->setWidgets(array(
'delivery_location' => new sfWidgetFormChoice(array('choices' => $deliveryLocationChoices )),
));
它很好用,但我想打印每个单独的复选框项目。原因是我需要自定义每个框的位置。
谢谢
【问题讨论】: