Documentation

AbstractTemplate
in package
implements TemplateInterface

AbstractYes

View template abstract 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

Interfaces

TemplateInterface
View template interface

Properties

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

Methods

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>
Return values
string

renderTemplate()

Render view template file

protected abstract renderTemplate() : void

        
On this page

Search results