RenderTwig
in package
Class to facilitate Twig rendering author: hl@cloudframework.io
Table of Contents
Properties
- $config : mixed
- $error : mixed
- $errorMsg : mixed
- $load_from_cache : mixed
- $showTags : mixed
- $templates : mixed
- $twig : mixed
- $core : mixed
- $index : mixed
Methods
- __construct() : mixed
- addError() : mixed
- addFileTemplate() : mixed
- addStringTemplate() : mixed
- addURLTemplate() : mixed
- autoload() : mixed
- getTemplate() : mixed
- getTiwg() : mixed
- render() : mixed
- setTwig() : bool
- test() : mixed
Properties
$config
public
mixed
$config
$error
public
mixed
$error
= \false
$errorMsg
public
mixed
$errorMsg
= []
$load_from_cache
public
mixed
$load_from_cache
= \false
$showTags
public
mixed
$showTags
= \false
$templates
public
mixed
$templates
= []
$twig
public
mixed
$twig
= \null
$core
private
mixed
$core
$index
private
mixed
$index
= ''
Methods
__construct()
public
__construct(Core7 &$core, mixed $config) : mixed
Parameters
- $core : Core7
- $config : mixed
addError()
public
addError(mixed $value) : mixed
Parameters
- $value : mixed
addFileTemplate()
public
addFileTemplate(mixed $index, mixed $path) : mixed
Parameters
- $index : mixed
- $path : mixed
addStringTemplate()
public
addStringTemplate(mixed $index, mixed $template) : mixed
Parameters
- $index : mixed
- $template : mixed
addURLTemplate()
public
addURLTemplate(mixed $index, mixed $path[, mixed $reload = false ]) : mixed
Parameters
- $index : mixed
- $path : mixed
- $reload : mixed = false
autoload()
public
static autoload(mixed $class) : mixed
Parameters
- $class : mixed
getTemplate()
public
getTemplate() : mixed
getTiwg()
public
getTiwg(mixed $index) : mixed
Parameters
- $index : mixed
render()
public
render([mixed $data = [] ]) : mixed
Parameters
- $data : mixed = []
setTwig()
public
setTwig( $index) : bool
Parameters
Return values
booltest()
public
test() : mixed