Symfony2 Bootstrap 导航栏生产模式 [英] Symfony2 Bootstrap navbar Prod mode
本文介绍了Symfony2 Bootstrap 导航栏生产模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是 Symfony 的初学者我正在尝试在一个简单的 Symfony 项目中使用引导导航栏问题是它在开发模式下工作,但在生产模式下,单击菜单下拉菜单"时不显示.
I am a beginner in Symfony I am trying to use a bootstrap navbar in a simple Symfony project the problem is that it works in dev mode but in prod mode the menu "dropdown" is not shown when it is clicked .
这个截图是在开发模式下截取的:
This screenshot is taken in dev mode:
推荐答案
用这个命令解决了:php app/console assetic:dump --env=prod --no-debug
thna 为 prod 清除缓存
It's solved with this command :
php app/console assetic:dump --env=prod --no-debug
thna clearing cache for prod
这篇关于Symfony2 Bootstrap 导航栏生产模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文