Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: PureMVC use in Ajax/AMF Gateway  (Read 9617 times)
Justin
Full Member
***
Posts: 24


View Profile Email
« 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
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 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>
Logged
Pages: [1]
Print