Class View
A service that use to render PHP template
- Wei\Base
- Wei\View implements ArrayAccess
public
|
|
public
string
|
|
public
string|null
|
|
public
|
|
public
mixed
|
|
public
mixed
|
|
public
string
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
|
public
string
|
#
getExtension( )
Get default template file extension, such as php, tpl, this is useful for automatic render template |
public
boolean
|
|
public
mixed
&
|
|
public
|
|
public
|
__call(),
__get(),
getOption(),
setOption()
|
protected
array
|
$data
The template variables |
#
array()
|
protected
array
|
$dirs
The directories to find template |
#
array('.')
|
protected
string
|
$extension
Default template file extension |
#
'.php'
|
protected
array
|
$layout
The layout configuration |
#
array()
|
protected
string
|
$defaultLayout
The default layout path for layout method |
$providers,
$wei
|