Documentation

File extends AbstractTemplate
in package

View file template class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
4.0.0

Table of Contents

Properties

$data  : array<string|int, mixed>
View data
$output  : string|null
View output string
$template  : string|null
View template

Methods

__construct()  : mixed
Constructor
getTemplate()  : string
Get view template
render()  : string
Render the view and return the output
setTemplate()  : static
Set view template
renderTemplate()  : void
Render view template file

Properties

Methods

__construct()

Constructor

public __construct(string $template) : mixed

Instantiate the view file template object

Parameters
$template : string

getTemplate()

Get view template

public getTemplate() : string
Return values
string

render()

Render the view and return the output

public render([array<string|int, mixed>|null $data = null ]) : string
Parameters
$data : array<string|int, mixed>|null = null
Tags
throws
Exception
Return values
string

setTemplate()

Set view template

public setTemplate(string $template) : static
Parameters
$template : string
Tags
throws
Exception
Return values
static

renderTemplate()

Render view template file

protected renderTemplate() : void

        
On this page

Search results