I handle it like that: The data send by the controller should be the minimal data needed to send a response no matter what type is may be. The view should then transform the data into the specific response (html, json, …).
I handle it like that: The data send by the controller should be the minimal data needed to send a response no matter what type is may be. The view should then transform the data into the specific response (html, json, …).