class View

Properties

protected RendererInterface $renderer

Methods

getRenderer()

Gets the renderer

__construct(RendererInterface $renderer, array $params = [])

View constructor.

displayTemplate(string $template)

Fetches a template and outputs its contents

string
fetchTemplate(string $template)

Fetches a template and returns its contents

string
fetchStringAsTemplate(string $template)

No description

boolean
templateExists(string $template)

Checks, whether a template exists or not

$this
assign(string|array $name, mixed $value = null)

Assigns a new template variable

Details

at line 19
RendererInterface getRenderer()

Gets the renderer

Return Value

RendererInterface

at line 30
__construct(RendererInterface $renderer, array $params = [])

View constructor.

Parameters

RendererInterface $renderer
array $params

at line 41
displayTemplate(string $template)

Fetches a template and outputs its contents

Parameters

string $template

at line 53
string fetchTemplate(string $template)

Fetches a template and returns its contents

Parameters

string $template

Return Value

string

at line 63
string fetchStringAsTemplate(string $template)

Parameters

string $template

Return Value

string

at line 79
boolean templateExists(string $template)

Checks, whether a template exists or not

Parameters

string $template

Return Value

boolean

at line 92
$this assign(string|array $name, mixed $value = null)

Assigns a new template variable

Parameters

string|array $name
mixed $value

Return Value

$this