贴一个自定义的 symfony 的表单皮肤 应用bootstrap效果_PHP教程
程序员文章站
2024-02-07 13:40:04
...
效果如图
{% endmacro %}
摘自 jiaochangyun的专栏
调用很方便
[html]
{% import "JcyHelperBundle:tmp:jcyForm.html.twig" as forms %}
{{ forms.jcyForm(dbForm,path('JcyHelperBundle_db_set'),'Connect') }}
{% import "JcyHelperBundle:tmp:jcyForm.html.twig" as forms %}
{{ forms.jcyForm(dbForm,path('JcyHelperBundle_db_set'),'Connect') }}
现在上源代码[html]
{% macro jcyForm(form,action,submit_name,onSubmitJs) %}
{% endmacro %}
摘自 jiaochangyun的专栏