【问题标题】:Use an admin html template with react-boilerplate使用带有 react-boilerplate 的管理 html 模板
【发布时间】:2017-05-23 21:27:27
【问题描述】:

我已经有一个使用 Bower 组件(日期选择器、滑块、切换器、下拉列表、图表等)的 HTML 管理模板。这个模板有一个我想在我的应用程序中使用的布局。

我想知道我可以使用这个模板和 react-boilertplate。

我已经在 React 和 Symfony 中使用了这个模板,没有任何问题,工作得很好。结构是这样的:

- Main Symfony App folder
    - Some Symfony folder
    - Some Symfony folder
    - the SRC Symfony folder where I Have all the bundles
        - UserBundle: here I have the React componentes
    - the Web Symfony folder: this is the public content
        - here I have assets, bower components, etc.

但现在我的目标是将所有 React 部分移出并将它们放在 Web 文件夹中,在这里我将让 react-boilerplate 工作。

但我不知道从哪里开始。任何人都可以提示如何使用已经制作的带有大量凉亭组件但由 react-boilerplate 提供支持的 html 模板?

提前致谢。

【问题讨论】:

    标签: symfony bower react-boilerplate


    【解决方案1】:

    创建一个单独的 web 文件夹,它独立于您的 symfony 项目,例如客户端/模板,并在模块捆绑器的帮助下将压缩/最小化的文件提取到 web 文件夹中。 它还将帮助您轻松迁移到 symfony 4 http://fabien.potencier.org/symfony4-directory-structure.html

    【讨论】:

      猜你喜欢
      • 2020-07-17
      • 1970-01-01
      • 2020-12-05
      • 1970-01-01
      • 2016-06-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-17
      相关资源
      最近更新 更多