用于PHP的ExtJS Wrapper

我正在考虑使用 ExtJS 库。</ p>

我认为在PHP中使用包装器会很棒 创建ExtJS UI的Javascript定义。</ p>

这样,我就可以使用PHP定义我的网站的整个UI,这在我看来非常方便。</ p>

到目前为止,我一直在关注 PHP-Ext 几年前写的一个开源包装器,不再维护了。 因此,它不适用于ExtJS 4(最新版本)。</ p>

我想知道你是否在PHP中知道更好的ExtJS包装器?</ p>

如果没有,我会想知道我的想法是否真的好</ em> ......我想知道是否有人认为它没有意义。</ p>
</ DIV>

展开原文

原文

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.

duai5344
duai5344 在JS中快速创建网站很简单,但是如果有新版本的ExtJS,包装器将有助于维护整个站点:我们只需要更改包装器。
大约 9 年之前 回复
dongtiao2976
dongtiao2976 有一个名为Dextop的.NET后端(dextop.codaxy.com/showcase)。
大约 9 年之前 回复
douyou8047
douyou8047 IMO,没有太多UI桥的主要原因是因为直接在JavaScript中编写UI更容易,而不是用PHP生成它。虽然我承认,我仍然喜欢在PHP中这样做的想法。
大约 9 年之前 回复

3个回答




如果没有,我会想知道我的想法是否真的很好......
我会 想知道是否有人认为它没有意义。</ p>
</ blockquote>

ExtJS的关键卖点是这么多</ strong> 客户端。 我所知道的唯一与你所要求的相似的是ExtJS的GWT。 即使使用Java,我所知道的所有使用ExtJS的开发人员都希望将Java代码完全保留为支持ExtJS,如会话管理和REST服务,以支持AJAX操作。</ p>
</ div>

展开原文

原文

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.

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包装器失去支持的原因。 </ p>
</ div>

展开原文

原文

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.

dongwen5870
dongwen5870 好的,但是如果我在ExtJS中编写整个站点并且版本发生了变化,那么我需要升级网站的所有页面,否则我只需要更改包装器。
大约 9 年之前 回复



我建议你不要试图找到一个包装器。 最后你的代码会变得更糟,你将面临更大的风险(编译代码时,调试等问题很容易变得一团糟)。</ p>

如果你想轻松点击你的UI 一起尝试Sencha Architect(一种创建ExtJS代码的可视化工具)。 对于你的后端使用一个与Sencha很好地玩的框架。 我个人总是使用CakePHP和Bancha。</ p>

有时太多的抽象更糟糕! Sencha已经为你抽象了一切。 我希望这会有所帮助:)</ p>
</ div>

展开原文

原文

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 :)

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐