\Phile\Plugin\Phile\TemplateTwig\TemplateTwig

Class Twig

Summary

Methods
Properties
Constants
__construct()
setCurrentPage()
render()
No public properties found
No constants found
No protected methods found
$settings
$config
$page
N/A
No private methods found
No private properties found
N/A

Properties

$settings

$settings : array

Type

array — the complete phile config

$config

$config : array

Type

array — the config for twig

Methods

__construct()

__construct(mixed $config)

the constructor

Parameters

mixed $config

the configuration

setCurrentPage()

setCurrentPage(\Phile\Model\Page $page) : mixed|void

method to set the current page

Parameters

\Phile\Model\Page $page

the page model

Returns

mixed|void

render()

render() : mixed|string

method to render the page/template

Returns

mixed|string