PureMVC Architects Lounge

PureMVC Manifold => Standard Version => Topic started by: Justin on April 18, 2009, 08:47:29



Title: PureMVC use in Ajax/AMF Gateway
Post by: Justin on April 18, 2009, 08:47:29
Hi-
Just wanted to start by saying that I am a huge PureMVC fan.  I have used the AS3 port in large Flex projects for some high profile clients and it has convincingly reduced dev time by weeks on those projects. Also, I can't think of any other community that matches the density of talented devs than right here.

That said, I am working on a project that uses the PHP port in hopes of gaining the same velocity and traction that I saw by using it in Flex.  There are potentially 3 facets: HTML, Ajax and AMF.

My thought is that I can have a single gateway for each service that shares the same business logic and CRUD routines with data formatting in the proxy based on the type of call. For AMF and Ajax, the application could enter a 'command' mode that does not technically have/need a view.  Commands and proxies would remain the same but the mediators may change to steward the request directly without the involvement of a view.  To display HTML, it would closely follow the example given in the download.

Does this seem right?  Has anyone done this before or can offer some new direction? Could the request itself serve as an abstract view of sorts? Removing the 'V' from MVC seems touchy.

Justin


Title: Re: PureMVC use in Ajax/AMF Gateway
Post by: puremvc on April 19, 2009, 06:21:17
The 'V' in a server-side MVC implementation generally deals with templating the output and returning it to the caller. Otherwise everything else is pretty much the same.

-=Cliff>