Метод | Описание | |
---|---|---|
configure ( |
||
render ( ) : string |
Метод | Описание | |
---|---|---|
renderTemplate ( string $template, array $variables = [] ) : string | Assigns the given variables to the template and renders it. |
public static configure ( |
||
$config |
protected renderTemplate ( string $template, array $variables = [] ) : string | ||
$template | string | The name of the template file. If only a name is given it will automatically use the template within the plugin folder. For instance 'myTemplate' will result in '@$pluginName/myTemplate.twig'. Alternatively you can include the full path: '@anyOtherFolder/otherTemplate'. The trailing '.twig' is not needed. |
$variables | array | For instance array('myViewVar' => 'myValue'). In template you can use {{ myViewVar }} |
Результат | string |