Documentation

View implements View

Interfaces, Classes and Traits

View

Table of Contents

$file  : string
File.
$isCom  : bool
Is component.
compile()  : void
Compile.
renderTemplate()  : void
Render a view template.
view()  : mixed
Rander the view.
setFile()  : void
Set file.

Properties

$file

File.

protected static string $file = ''
Tags
since
1.0.0

$isCom

Is component.

protected static bool $isCom = false
Tags
since
1.0.0

Methods

compile()

Compile.

public compile() : void
Tags
todo

future

Return values
void

renderTemplate()

Render a view template.

public static renderTemplate((string) $file[, (array) $args = [] ]) : void
Parameters
$file : (string)

Name of files.

$args : (array) = []

Attributes.

Tags
since
1.0.0
Return values
void

view()

Rander the view.

public static view((string) $file[, (array) $args = [] ][, (bool) $minify = false ][, (array) $headers = [] ][, mixed $code = 200 ]) : mixed
Parameters
$file : (string)

Name of files

$args : (array) = []

Attributes.

$minify : (bool) = false

Is code should be minify

$headers : (array) = []

Custom headers.

$code : mixed = 200
Tags
since
1.0.0
Return values
mixed

setFile()

Set file.

protected static setFile( $file) : void
Parameters
$file :

file with path.

Tags
since
1.0.0
Return values
void

Search results