PHP Класс Shopware\PluginCreator\Services\Template

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
doRender ( $_template, boolean $return = false ) : string Will actually render the template

Описание методов

assign() публичный Метод

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

display() публичный Метод

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

errorReporter() публичный Метод

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

fetch() публичный Метод

Render the given template and return the result
public fetch ( $_template ) : string
$_template
Результат string

setTemplatePath() публичный Метод

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