Documentation

File extends AbstractTemplate
in package

View file template class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

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

license

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

version
3.3.0

Table of Contents

$data  : array<string|int, mixed>
View data
$output  : string
View output string
$template  : string
View template
__construct()  : mixed
Constructor
getTemplate()  : string
Get view template
render()  : string
Render the view and return the output
setTemplate()  : File
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
Return values
mixed

getTemplate()

Get view template

public getTemplate() : string
Return values
string

render()

Render the view and return the output

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

setTemplate()

Set view template

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

renderTemplate()

Render view template file

protected renderTemplate() : void
Tags
throws
Exception
Return values
void

Search results