【发布时间】:2016-02-09 05:16:26
【问题描述】:
我在 Symfony 2 上安装了一个带有 Extjs 4 的应用,我想更新它以响应。
基于此zazencode.com/symfony/2014/02/,我在 Twig 和 ExtJs 中混合了网格、表单、动作... 04/extjs-with-symfony-part1.html,它工作正常。
我希望使用 extJs 6 现代消费 REST 与 Symfony 进行全面的前端响应。
我尝试使用 Symfony 加载 Ext 6 应用程序,但无法播放。
我尝试了这些解决方案,但也没有成功:
- https://github.com/partkeepr/extjs6
- https://www.teqneers.de/2015/09/sencha-ext-js-meets-symfony/(几乎可以使用)
- www.sencha.com/forum/showthread.php?288955-Extjs5-with-Symfony2-Folder-structure,也不起作用(Symfony Bar OK 200 只是空白页)
有没有办法将 Ext app 5 或 6 与 Symfony 一起使用?
谢谢你的帮助
【问题讨论】:
-
我的 sencha 应用在 Symfony 的 web 文件夹中,在 js/packages/my-app 中。我通过 Twig 使用 sencha
Ext.beforeLoad = function (tags) { var s = location.search, // the query string (ex "?foo=1&bar") profile;和<script id="microloader" data-app="<senche-hash>" type="text/javascript" src="js/packages/my-app/bootstrap.js"></script>制作的代码请求它
标签: symfony extjs6-modern