Method | Description | |
---|---|---|
getContext ( ) | ||
getPath ( string $templateName ) : string | Get template file path | |
getView ( ) | ||
load ( string $templateName, array $context = [] ) : string | Load a template from data folder, compile it if it is outdated or not exists | |
parseLoop ( $match ) | ||
parseUrlRewrite ( $match ) | ||
putContext ( $name, $value, $escapeType = Escape::TEXT_RECURSIVE ) | ||
render ( ) | ||
setContext ( $context = [] ) | ||
setView ( $viewName ) |
Method | Description | |
---|---|---|
compile ( $templateName ) | ||
createDir ( $dir, $permission = 511 ) | ||
pregGet ( $subject, $pattern, $offset = 1 ) |
public static putContext ( $name, $value, $escapeType = Escape::TEXT_RECURSIVE ) |