Documentation

AbstractTemplate
in package
implements TemplateInterface

View template abstract class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

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

license

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

version
3.3.0

Interfaces, Classes, Traits and Enums

TemplateInterface
View template interface

Table of Contents

$data  : array<string|int, mixed>
View data
$output  : string
View output string
$template  : string
View template
getTemplate()  : string
Get view template
render()  : string
Render the view and return the output
setTemplate()  : AbstractTemplate
Set view template
renderTemplate()  : void
Render view template file

Properties

Methods

getTemplate()

Get view template

public getTemplate() : string
Return values
string

render()

Render the view and return the output

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

renderTemplate()

Render view template file

protected abstract renderTemplate() : void
Return values
void

Search results