Engine
Class Engine Provides interface for templates processing.
Table of Contents
Methods
- process() : string
- Takes an entity (Element, Section or Iblock) and processes the template.
Methods
process()
Takes an entity (Element, Section or Iblock) and processes the template.
public
static process(Base $entity, string $template) : string
if (\Bitrix\Main\Loader::includeModule('iblock'))
{
$e = new \Bitrix\Iblock\Template\Entity\Element(6369);
echo "", print_r(\Bitrix\Iblock\Template\Engine::process($e, "Name: {=this.Name}. Code:{=this.code}"), 1), "
";
}
Parameters
- $entity : Base
-
Context entity for template processing.
- $template : string
-
Template to make substitutions in.