Jump to content

PHP MVC Conundrum


mlange

Recommended Posts

I have been working on a PHP MVC framework for a while and have come across some questions that I can't seem to answer for my self.

Now ... here is an explanation of the basis of the framework.


Model:
Handles all of the data manipulation -- DB abstraction, retrieving remote xml feeds, crypto and so on.

Control:
Pipes all the requests to the proper places and data back to the proper View parsers. For the most part it's all gateways such as an HTML gateway, AJAX/JSON gateway, AMFPHP gateway

View:
This is very broken up because it can be handled by PHP templates, Flash, JavaScript


Now here is where things get fuzzy :)

XML output from the PHP framework. Technically in the grand scheme you would think this was Data from the model being sent thru the controller to whatever view will end up using it (for example Flash/AJAX). But it leaves the PHP system in the same manner as html would from the server side.

So what is this? Is it model data or view?

I believe hearing other points of view may help me design this better. Thanks in advance for the input
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.