PHP 的 ExtJS 包装器
我正在考虑使用 Sencha 的 ExtJS 库在 PHP 中开发一个新网站。
我认为如果 PHP 中有一个包装器,它允许我创建 ExtJS UI 的 Javascript 定义,那就太好了。
这样,我就可以使用 PHP 定义网站的整个 UI,我认为这非常方便。
到目前为止,我一直在研究 PHP-Ext 这是一个开源包装器,编写了一些代码几年前,不再维护。因此,它不适合ExtJS 4(最新版本)。
我想知道您是否知道 PHP 中 ExtJS 的更好包装器?
如果没有,我会想知道我的想法是否真的好......并且我想知道是否有人认为它没有意义。
I am considering developping a new website in PHP using the ExtJS library from Sencha.
I thought that it would be great to have a wrapper in PHP which allows me to create the Javascript definitions of the ExtJS UI.
This way, I would be able to define the whole UI of my website using PHP which would be in my opinion pretty convenient.
So far, I have been looking at PHP-Ext which is an open source wrapper written a few years ago and not being maintained anymore. Hence, it is not adapted to ExtJS 4 (the latest version).
I would like to know if you know a better wrapper for ExtJS in PHP?
If there is none, I would be wondering if my idea is actually good... and I would like to know if someone thinks it doesn't make sense.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
ExtJS 的主要卖点是它在客户端上做这么多。我所知道的唯一与您所要求的类似的是 ExtJS 的 GWT。即使使用 Java,我认识的所有使用 ExtJS 的开发人员都更喜欢将 Java 代码纯粹用于支持 ExtJS,例如会话管理和 REST 服务来支持 AJAX 操作。
The key selling point of ExtJS is that it does so much on the client. The only thing I know of that's similar to what you're asking for is GWT for ExtJS. Even with Java, all of the developers I know who use ExtJS prefer to leave the Java code purely to supporting ExtJS like session management and REST services to power AJAX operations.
Ext JS 已经简化了网站的创建。创建包装器可能不会进一步简化它。此外,随着不同版本的 Ext JS 的出现,您还需要更改包装器以支持更改。维护包装纸可能最终会比其他任何事情都更令人头疼。也许这就是 PHP-Ext 包装器失去支持的原因。
Ext JS has already simplified creation of a website. Creating a wrapper would probably not simplify it any further. Also with different version of Ext JS coming in you'll also need to change the wrappers to support the changes. Maintaining the wrapper would probably end up in being more of a headache than anything else. Probably that's why the PHP-Ext wrapper has lost support.
我建议您不要尝试寻找包装纸。最终你的代码会变得更糟,你将面临更大的风险(当代码编译时,调试之类的事情很容易变得一团糟)。
如果您想轻松地将您的 UI 一起单击,请尝试 Sencha Architect(一种用于创建 ExtJS 代码的可视化工具)。对于您的后端,请使用与 Sencha 配合良好的框架。我个人总是使用 CakePHP 和 Bancha。
有时太多抽象会更糟糕! Sencha 已经为您抽象了一切。我希望这有帮助:)
I would recommend you to NOT try to find a wrapper. In the end your code will get worse and you will have a bigger risk (things like debugging can become a mess so easily when code is compiled).
If you want to easily click your UI together, try Sencha Architect (a visual tool to create ExtJS code). For your backend use a framework with plays nicely with Sencha. I personally always use CakePHP and Bancha.
Sometimes too much abstraction is worse! Sencha already abstracts everything for you. I hope this helps :)