I've been having this discussion for a while already and I would like to know the broad opinion and reasons for the people in here.
The context
This question is about the theoretically correct scopes of a View in a MVC Model in PHP.
The so-far-understood
In a MVC design, the View part should be responsible of painting a page or part of it. This means that the View will paint static content and parameters build with PHP. In some cases some flow control logic is required here - foreachs, fors.
The problem
I thought that View side of the MVC should be extremely dumb - being the filters and formats of the parameters handled by the Libraries that generate these parameters...
However, some template engines like Twig or Smarty supports the idea of having format controllers in the View, being acceptable to filter and format currencies, dates, etc.
Where are then the limits of the "intelligence" of a View? If the filters and formats are acceptable of a View, what about conditional formats? For example, if the Date format can be set by the User, then the View must know about this setting - and if we allow this we can extend the View knowledge for currencies, languages, etc...?
Thanks!