PHP 클래스 Frontend\Core\Engine\TwigTemplate

상속: extends Common\Core\Twig\BaseTwigTemplate
파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) The constructor will store the instance in the reference, preset some settings and map the custom modifiers.
addGlobal ( string $name, mixed $value ) Adds a global variable to the template
getContent ( string $template ) : string Fetch the parsed content from this template.
getPath ( string $template ) : string Convert a filename extension
render ( string $template, array $variables = [] ) : string

비공개 메소드들

메소드 설명
getFormTemplates ( string $fileName ) : array
getLoadingFolders ( ) : array

메소드 상세

__construct() 공개 메소드

The constructor will store the instance in the reference, preset some settings and map the custom modifiers.
public __construct ( )

addGlobal() 공개 메소드

Adds a global variable to the template
public addGlobal ( string $name, mixed $value )
$name string
$value mixed

getContent() 공개 메소드

Fetch the parsed content from this template.
public getContent ( string $template ) : string
$template string The location of the template file, used to display this template.
리턴 string The actual parsed content after executing this template.

getPath() 공개 메소드

Convert a filename extension
public getPath ( string $template ) : string
$template string
리턴 string

render() 공개 메소드

public render ( string $template, array $variables = [] ) : string
$template string
$variables array
리턴 string