PHP Class Gc\View\Renderer

Inheritance: extends Gc\Core\Object
ファイルを表示 Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$renderer Zend\View\Renderer\PhpRenderer Renderer

Public Methods

Method Description
addPath ( string $dir ) : Renderer Add path in Zend\View\Resolver\TemplatePathStack
getRenderer ( ) : Zend\View\Renderer\PhpRenderer Retrieve php renderer
init ( ) : void Directly initiliaze the renderer
render ( string $name, array $data = [] ) : string Render template

Protected Methods

Method Description
checkRenderer ( ) : Renderer Check renderer, create if not exists Copy helper plugin manager from application service manager

Method Details

addPath() public method

Add path in Zend\View\Resolver\TemplatePathStack
public addPath ( string $dir ) : Renderer
$dir string Directory
return Renderer

checkRenderer() protected method

Check renderer, create if not exists Copy helper plugin manager from application service manager
protected checkRenderer ( ) : Renderer
return Renderer

getRenderer() public method

Retrieve php renderer
public getRenderer ( ) : Zend\View\Renderer\PhpRenderer
return Zend\View\Renderer\PhpRenderer

init() public method

Directly initiliaze the renderer
public init ( ) : void
return void

render() public method

Render template
public render ( string $name, array $data = [] ) : string
$name string Name
$data array Data
return string

Property Details

$renderer protected_oe property

Renderer
protected PhpRenderer,Zend\View\Renderer $renderer
return Zend\View\Renderer\PhpRenderer