메소드 | 설명 | |
---|---|---|
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 ) |
메소드 | 설명 | |
---|---|---|
compile ( $templateName ) | ||
createDir ( $dir, $permission = 511 ) | ||
pregGet ( $subject, $pattern, $offset = 1 ) |
public static putContext ( $name, $value, $escapeType = Escape::TEXT_RECURSIVE ) |