Views are the V in MVC. Views are responsible for generating the specific output required for the request.
Often this is in the form of HTML, XML, or JSON, but streaming files and creating PDFs that users can
download are also responsibilities of the View Layer. CakePHP comes with a few built-in View classes for handling the most common rendering scenarios:
- To create XML or JSON webservices you can use the JSON and XML views.
- To serve protected files, or dynamically generated files, you can use Sending files.
- To create multiple themed views, you can use Themes.