Re: Framework for PHP-GTK app
| From: | Pablo Dall'Oglio | Date: | Wed, 03 Aug 2005 13:27:03 +0000 |
| Subject: | Re: Framework for PHP-GTK app | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6140@lists.php.net to get a copy of this message | ||
On Qua, 2005-08-03 at 14:51 +0200, Łukasz Wojciechowski wrote:
> > I can't imagine a case where an MVC framework would be beneficial to a
> > PHP-GTK application. I have used many MVC frameworks for web based
> > applications and can understand how they are useful there but I am
> > confused as to why you would try to use one here. MVC frameworks are
> > excellent for the request-response model of web based applications but
> > in an event driven application I think you are forcing something that
> > isn't needed. Can you clarify why you want to use an MVC with PHP-GTK?
>
> Yes
>
> Some time ago I asked similar question on seagull framework mailing
> list. Take a look:
> http://marc.theaimsgroup.com/?t=111513583100006&r=1&w=2
>
> Demian said something completely opposite than you wrote here.
>
> Im confused :)
>
> So if you think that MVC pattern is not suitable for gui apps than maybe
> you know which known pattern is more suitable.
It's a little bit painfull to write a database application in php-gtk
without a set of class wrappers for common stuffs (forms, menus, etc),
and without a set of classes for DB persistence. Of course, it's just a
part of a framework.
* Model:
* An abstraction of some real-world process or system
* Encapsulates data and functions that operate on it
* Notifies observers when data changes
* View:
* The system's user interface
* Attaches to the model and renders its contents to the
display surface
* Automatically redraws the affected part when the model
changes
* Controller:
* Controls the application flow
* Accepts input from the user and instructs the model and
the view to perform actions based on that input
>
> --
> Greetings
> Łukasz Wojciechowski
>
--
:: Pablo Dall'Oglio
:: www.solis.coop.br - Lajeado, RS - Brasil
:: www.dalloglio.net - Personal Home Page
:: The software is free, but the work isn't.