Flex、AMFPHP 和 Codeigniter?

发布于 2024-09-30 15:45:58 字数 199 浏览 1 评论 0原文

我刚刚开始从事 Flex 开发,想知道 Zend / Flex 和 CodeIgniter / Flex 是如何叠加的。

我是一名 PHP 开发人员,对 CI 非常了解,但没有使用过 Zend,但它似乎是我在教程和书中最常使用的框架。基本上,我不想一开始就走一条路,结果却发现某种设置存在严重的限制和问题。

任何建议将不胜感激。

谢谢!

I'm just starting out in Flex development and want to know how Zend / Flex and CodeIgniter / Flex stack up.

I'm a PHP developer, and know CI pretty well but haven't used Zend, but it seems to be the framework used most often in tutorials and the book I've got. Basically I don't want to start down one path, only to discover that there's serious limitations and problems with a certain set up.

Any advice would be greatly appreciated.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心在旅行 2024-10-07 15:45:58

我使用 CodeIgniter 编写了 Flex 网站和常规 Javascript/HTML 网站。如果您几乎只使用 Flex,则不必(那么多)担心 CI 的视图方面,但您仍然可以利用控制器/模型设置。在您的 Flex 应用程序中,只需将 JSON 编码的字符串发送到 CI 控制器,然后让控制器发送回 JSON 编码的字符串。这样做本质上并没有什么错。我听说过 AMFPHP 如何“更容易”与 Flex 一起使用,但我一直认为这是 Adob​​e 的废话。如果有一天您希望您的应用程序不使用 Flash,那么您专注于 JSON 将会帮您自己一个忙。

关于 Zend 与 CodeIgniter……这是一个复杂的话题。每当我查看 Zend 时,我都发现它比 CI 更加冗长,令人恼火,而且我一直认为 CI 确实正确地实现了 MVC。或者,您可以查看 Kohana,它使用 HMVC 框架。不管怎样,特别是所有这些如何连接到 Flex,我认为这是一个相当简单的问题。我们正在讨论 HTTP 请求以及如何对其进行编码。如果您对 JSON 感到满意(在 PHP 中,确实不可能不这样),那么这实际上不应该成为争论的焦点。

I've coded Flex websites and regular Javascript/HTML websites with CodeIgniter. If you're using Flex almost exclusively, you don't have to worry (as much) about the views side of CI, but you can still utilize the controller/model setup. In your Flex app, just send JSON-encoded strings to CI controllers, and have the controllers send JSON-encoded strings back. There's nothing inherently wrong with doing it this way. I've heard things about how AMFPHP is "easier" to use with Flex, but I've always taken this as Adobe fluff. If one day you want your app not to use Flash, you will be doing yourself a favor by focusing on JSON instead.

Regarding Zend vs. CodeIgniter...that's a complex topic. Whenever I've looked at Zend, I found it to be a bit more annoyingly verbose than CI, and I've always thought CI really does MVC right. Alternatively, you can take a look at Kohana, which uses an HMVC framework. Regardless, how all of these connect to Flex in particular, I think that's a fairly straightforward issue. We're talking about HTTP requests and how to encode them. If you're comfortable with JSON (and in PHP, it's really impossible not to be), this shouldn't really be a point of contention.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文