我正在使用Play framework 2.4。我试图在https://www.playframework.com/documentation/2.0/ScalaFormHelpers指导下使用bootstrap。
在我的模板中,我使用了import语句:
@import helper.twitterBootstrap._
但是我收到了编译错误:
object twitterBootstrap is not a member of package views.html.helper
我错过了什么吗?
答案 0 :(得分:8)
如果在这里提到的话,可能已被删除: https://www.playframework.com/documentation/2.3.3/Migration23
The in-built Twitter Bootstrap field constructor has been deprecated, and will be removed in a future version of Play.
There are a few reasons for this, one is that we have found that Bootstrap changes too drastically between versions and too frequently, such that any in-built support provided by Play quickly becomes stale and incompatible with the current Bootstrap version.
对于那些使用游戏2.4
的人