PHP Class Shopware\PluginCreator\Services\Template

Show file Open project: shopwarelabs/sw-cli-tools Class Usage Examples

Public Methods

Method Description
assign ( $name, $value ) Assign a variable to the template.
display ( $_template ) Render the given template and return the result
errorReporter ( $severity, $message, $filename, $lineno )
fetch ( $_template ) : string Render the given template and return the result
setTemplatePath ( $path ) Set the base path of the templates

Private Methods

Method Description
doRender ( $_template, boolean $return = false ) : string Will actually render the template

Method Details

assign() public method

Assign a variable to the template.
public assign ( $name, $value )
$name
$value

display() public method

Render the given template and return the result
public display ( $_template )
$_template

errorReporter() public method

public errorReporter ( $severity, $message, $filename, $lineno )

fetch() public method

Render the given template and return the result
public fetch ( $_template ) : string
$_template
return string

setTemplatePath() public method

Set the base path of the templates
public setTemplatePath ( $path )
$path