【发布时间】:2015-07-17 23:29:04
【问题描述】:
我是初学者开发者。在 symfony 2 和 twig 中,我想添加一个我在网上找到的引导组合框https://github.com/danielfarrell/bootstrap-combobox/。 我想在我的树枝模板上添加这个组合框。但是,正如这里所写:
<select class="combobox">
<option></option>
<option value="PA">Pennsylvania</option>
<option value="CT">Connecticut</option>
<option value="NY">New York</option>
<option value="MD">Maryland</option>
<option value="VA">Virginia</option>
</select>
它使用了来自 css 的基本值......但是我想要做的,列出:
{{ form_row(form.city) }}
这个在组合框中...
作为进一步的例子,它写成:http://symfony.com/doc/current/cookbook/form/form_customization.html#method-2-inside-a-separate-template
我们将不胜感激!
【问题讨论】:
标签: php css twitter-bootstrap symfony combobox