MVC: Structuring Feed Output

Posted by Brian Wigginton on Stack Overflow See other posts from Stack Overflow or by Brian Wigginton
Published on 2010-03-11T20:02:11Z Indexed on 2010/03/11 20:04 UTC
Read the original article Hit count: 182

Filed under:
|

The framework I'm using on my project follows the MVC Pattern. I"M building JSON feeds and need to structure them in a different way then what the system gives me by default from the ORM. Where should I be handling the task of mangling and shaping my data that I'll serve up, in the model, view or controller?

Right now I'm doing it in my controller, then passing that data to the view. I can see this fitting better under the Model or the View but not sure which one.

© Stack Overflow or respective owner

Related posts about mvc

Related posts about cakephp