如何在3版Symfony上为项目安装bootstrap_3_layout.html.twig,...
?
当我将这些文件复制到我的项目时,我会发现错误:
'意外角色"&"'(twig_error_syntax)。
不要复制或经过这些文件,而是配置twigbundle将它们用作表单模板,在 config.yml
file
twig:
form_themes:
- bootstrap_3_layout.html.twig
确保在您的应用程序中使用bootstrap
使用此
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
或下载并在您的应用程序中使用