W3cubDocs

/CakePHP 4.4

Namespace View

Namespaces

Classes

  • AjaxView

    A view class that is used for AJAX responses. Currently, only switches the default layout and sets the response type - which just maps to text/html by default.

  • Cell

    Cell base.

  • Helper

    Abstract base class for all other Helpers in CakePHP. Provides common methods and features.

  • HelperRegistry

    HelperRegistry is used as a registry for loaded helpers and handles loading and constructing helper class objects.

  • JsonView

    A view class that is used for JSON responses.

  • NegotiationRequiredView

    A view class that responds to any content-type and can be used to create an empty body 406 status code response.

  • SerializedView

    Parent class for view classes generating serialized outputs like JsonView and XmlView.

  • StringTemplate

    Provides an interface for registering and inserting content into simple logic-less string templates.

  • View

    View, the V in the MVC triad. View interacts with Helpers and view variables passed in from the controller to render the results of the controller action. Often this is HTML, but can also take the form of JSON, XML, PDF's or streaming files.

  • ViewBlock

    ViewBlock implements the concept of Blocks or Slots in the View layer. Slots or blocks are combined with extending views and layouts to afford slots of content that are present in a layout or parent view, but are defined by the child view or elements used in the view.

  • ViewBuilder

    Provides an API for iteratively building a view up.

  • XmlView

    A view class that is used for creating XML responses.

Traits

  • CellTrait

    Provides cell() method for usage in Controller and View classes.

  • StringTemplateTrait

    Adds string template functionality to any class by providing methods to load and parse string templates.

  • ViewVarsTrait

    Provides the set() method for collecting template context.

© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/namespace-Cake.View.html