PHP中的任何真实MVC库(用于GUI应用程序) [英] any real MVC library in PHP (for GUI apps)

查看:114
本文介绍了PHP中的任何真实MVC库(用于GUI应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道一个PHP gui库是否有任何抽象框架.我们有 PHP-GTK ,一个 PHP/Tk 接口,而且似乎也是 PHP-QT . (没有尝试过.)

I'm wondering if there are any abstraction frameworks for one of the PHP gui libraries. We have PHP-GTK, a PHP/Tk interface, and seemingly also PHP-QT. (Not tried any.)

我知道在Python中使用原始的Gtk +接口编写只是可以接受的,因此对于PHP来说似乎不是很诱人.我认为Qt也是一样,Tk也很低级.因此,我正在寻找一种可以在这三种方法中的任何一种之上提供更好的对象结构的方法.主要是TreeViews总是很繁琐,而php-gtk回调在PHP中却很奇怪,因此我想对此进行简化.如果可以轻松地在没有太多控制代码的情况下将GUI/视图添加到我的业务逻辑上,那可能已经有用.

I know that writing against the raw Gtk+ interface in Python is just bearable, and it therefore seems not very enticing for PHP. I assume it's the same for Qt, and Tk is pretty low-level too. So I'm looking for something that provides a nicer object structure atop any of the three. Primarily TreeViews are always a chore and php-gtk callbacks are weird in PHP, so I'd like a simplification for that. If it eases adding the GUI/View atop my business logic without much control code, that might already help.

因此,既然GUI应用程序是MVC或MVP真正有意义的领域,所以我想知道是否存在任何适用于此的库.

And so since GUI apps are an area where MVC or MVP would actually make sense, I'd like to know if any library for that exists.

仍然开放寻找答案.
(可能会有第二次赏金回合.这是一个不常见的话题,因此需要更多研究.)

Still open for answers.
(There will probably be a second bounty round. It's an uncommon topic, so needs more research.)

推荐答案

http://phpketchup.isgreat.org/ PHPKetchup 是处于计划阶段的新项目.目前尚无任何代码(似乎还打算用于商业用途,而不是开放源代码).它被宣布为PHP-GTK之上的框架.有一个构思文档明确列出了设计MVC框架的目标.

http://phpketchup.isgreat.org/ PHPKetchup is a new project in planning stage. There isn't any code available for now (also seems intended commercial, not open source). It was announced as framework atop PHP-GTK. There is a conception document which explicitly lists the goal as designing a MVC framework.

但是,似乎它们从CodeIgniter以及大多数常见的PHP框架结构中获得了灵感.重点似乎并不在于将PHP-GTK与应用程序逻辑集成在一起,而是主要是为视图提供数据库接口作为模型和瘦Gtk接口.

However it seems like they take inspiration from CodeIgniter and mostly the common PHP framework structure. The focus seems not to lie on integrating PHP-GTK with the application logic, but mostly to provide a database interface as model and a thin Gtk interface for the View.

MVC体系结构:
我们将为PHP-GTK框架设计并实现模型-视图-控制器(MVC)架构. SQLite将用于模型.删除HTML,CSS和Javascript后,PHP-GTK函数和Glade文件将集成到View中.控制器将进行相应的修改以与新创建的View一起使用.

MVC Architecture:
We will design and implement Model-View-Controller (MVC) architecture for the PHP-GTK framework. SQLite will be used for Model. PHP-GTK functions and Glade files will be integrated in View after removal of HTML, CSS and Javascript. Controller will be modified accordingly to work with the newly created View.

所以它的名称和组织可能只是MVC,但是其中一张图提到了"PHP-GTK函数添加",并且进一步暗示了对象结构化Gtk帮助器.

So it might just be MVC in name and organization, but one of the diagrams mentions "PHP-GTK functions addition" and there are further hints of object-structured Gtk helpers.

这篇关于PHP中的任何真实MVC库(用于GUI应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆