Component
in package
FinalYes
Core class Component renders and resuses small portions of HTML that could be embedded or returned for after rendering.
Table of Contents
Methods
- render() : string
- Renders and embeds a component or returns the component body for after rendering.
Methods
render()
Renders and embeds a component or returns the component body for after rendering.
public
render(string $component, array<string|int, mixed> $data[, bool $return = false ]) : string
Parameters
- $component : string
- $data : array<string|int, mixed>
- $return : bool = false