Patterns For PHP
Index Patterns News Forums

Transform View

From Patterns For PHP

The Transform View pattern is used with MVC pattern, usually implemented using XSLT.

Differently of Template View, in Transform View you don't have a previous skeleton of output. Template View extract data from the Model layer and build the output.

Thus, the basic process is:

  • the Transform View layer request a data from Model;
  • the Model hand out data in XML format;
  • the Transform View applies XSLT style to XML and give us the correspondent output (HTML, PDF, ODT...)
MediaWiki
GNU Free Documentation License 1.2