\hymie\viewView

视图抽象类

Summary

Methods
Properties
Constants
render()
getView()
getContentType()
setContentType()
getModel()
setModel()
No public properties found
No constants found
header()
$contentType
N/A
No private methods found
$model
$viewRoot
N/A

Properties

$contentType

$contentType : string

默认的 content-type

Type

string

$model

$model : array

模型对象

Type

array

$viewRoot

$viewRoot : string

视图主目录,可以在 config.php 中配置

Type

string

Methods

render()

render(\hymie\Result  $result) : void

渲染视图

Parameters

\hymie\Result $result

getView()

getView(string  $module, string  $result) : void

获取视图的工厂方法

Parameters

string $module
string $result

getContentType()

getContentType() 

Get the value of contentType

setContentType()

setContentType(  $contentType) : self

Set the value of contentType

Parameters

$contentType

Returns

self

getModel()

getModel() 

Get the value of model

setModel()

setModel(  $model) : self

Set the value of model

Parameters

$model

Returns

self

header()

header()