View implements View
Interfaces, Classes and Traits
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
$isCom
Is component.
protected
static bool
$isCom
= false
Tags
Methods
compile()
Compile.
public
compile() : void
Tags
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
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
Return values
mixed —setFile()
Set file.
protected
static setFile( $file) : void