【问题标题】:twitterBootstrap is not recognized in play framework 2.4?twitterBootstrap 在 play framework 2.4 中不被识别?
【发布时间】:2015-07-31 09:24:42
【问题描述】:

我正在使用 Play 框架 2.4。我尝试按照https://www.playframework.com/documentation/2.0/ScalaFormHelpers 的指导使用引导程序。

在我的模板中,我使用了 import 语句:

@import helper.twitterBootstrap._

但是我得到一个编译错误:

object twitterBootstrap is not a member of package views.html.helper

我错过了什么吗?

【问题讨论】:

    标签: twitter-bootstrap playframework-2.4


    【解决方案1】:

    也许它已被删除,如下所述: 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.
    

    对于使用 play 2.4 的人

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-10-08
      • 2015-08-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-02
      • 1970-01-01
      相关资源
      最近更新 更多