views:

193

answers:

1

Hi!

I need to combine

  • a ajax-driven RIA frontend, using for example JQuery layout plugin (http://layout.jquery-dev.net/demos/complex.html) or ExtJs (http://www.extjs.com/deploy/dev/examples/layout/complex.html), with...
  • a php mvc backend, using for example Zend MVC, CodeIgniter or Kohana

Where can I find info on how to set up the application structure/logic? What to put on the client/javascript side, and what on the server side? Maybe the traditional mvc framework paradigm with templates/views isn't the right thing here?

Links to examples, tutorials, blogs are very welcome!

A: 

quick response -- MVC can work great for ajax/RIA apps. Just remember that a "view" doesn't necessarily mean displaying something to the user or rendering in the browser. The view is the output of the program. In this case, your view would likely be JSON data that is received and interpreted by jQuery.

hope that helps! --Mark

Mark Moline
Thank you, Mark! Maybe the creation/functional "flow" of a ajax-driven RIA could be described like this: 1) The client application (with its js libraries and structure) is served from the backend, in some kind of main template/view. 2) The application logic and presentation is handled by client-side javascript. 3) The backend responds to application requests as a data/resource server, mainly using json/xml. In other words - the mvc backend functions on two main "domains" - delivering/instatiating the client application, and responding to client data requests... Is this a correct description?
Cambiata
Yes, that's basically it. There's not a lot of magic going on, just understanding "who" is requesting the information from the app. Is it the browser for display to the user? Or is it the jQuery method that's looking for JSON or even raw HTML to plug back in to the DOM.--M
Mark Moline