Php sfWidgetFormDoctrineChoice(数组(';多个';=>;真,';模型';=>;测试))-CSS

Php sfWidgetFormDoctrineChoice(数组(';多个';=>;真,';模型';=>;测试))-CSS,php,css,symfony1,doctrine,label,Php,Css,Symfony1,Doctrine,Label,我有: 'test_list' => new sfWidgetFormDoctrineChoice(array('multiple' => true, 'model' => 'test')), 此报表以html格式显示: <li> <input id="aaa_test_list_3" type="checkbox" value="3" name="aaa[test_list][]"> <label for="aaa_test_lis

我有:

'test_list'       => new sfWidgetFormDoctrineChoice(array('multiple' => true, 'model' => 'test')),
此报表以html格式显示:

<li>
<input id="aaa_test_list_3" type="checkbox" value="3" name="aaa[test_list][]">
<label for="aaa_test_list_3">Name</label>
</li>

如何实现这一点?

您可以使用render()、renderLabel()、renderHelp()和renderError()方法,而不是一次回显整个表单,或者为每个元素调用renderRow(),这意味着您可以对HTML进行更多的控制

有关更多信息,请参见此处:


(特别是下面几段的灰色方框)

我知道。我想从sfWidgetFormDoctrineChoice编辑模板。模板中没有任何内容。
li label {
 // somehow clear inheritance
}