Свойство | Тип | Описание | |
---|---|---|---|
$arrBlockNames | array | Block names | |
$arrBlocks | array | Blocks | |
$strDefault | string | Default template | |
$strFormat | string | Output format | |
$strParent | string | Parent template | |
$strTagEnding | string | Tag ending | |
$strTemplate | string | Template file |
Метод | Описание | |
---|---|---|
block ( string $name ) | Start a new block | |
endblock ( ) | End a block | |
extend ( string $name ) | Extend another template | |
inherit ( ) : string | Parse the template file and return it as string | |
insert ( string $name, array $data = null ) | Insert a template | |
parent ( ) | Insert the content of the parent block |
Метод | Описание | |
---|---|---|
getTemplatePath ( string $strTemplate, string $strFormat = 'html5', boolean $blnDefault = false ) : string | Find a particular template file and return its path |
protected getTemplatePath ( string $strTemplate, string $strFormat = 'html5', boolean $blnDefault = false ) : string | ||
$strTemplate | string | The name of the template |
$strFormat | string | The file extension |
$blnDefault | boolean | If true, the default template path is returned |
Результат | string | The path to the template file |