twig\ViewRenderer addExtensions()

addExtensions() public method Adds custom extensions public void addExtensions ( $extensions )$extensions array @see self::$extensions

twig\ViewRenderer addFilters()

addFilters() public method Adds custom filters public void addFilters ( $filters )$filters array @see self::$filters

twig\ViewRenderer addAliases()

addAliases() protected method Adds aliases protected void addAliases ( $loader, $aliases )$loader \Twig_Loader_Filesystem $aliases array

twig\ViewRenderer $twigModulesNamespace

$twigModulesNamespace public property (available since version 2.0.5) Twig namespace to use in modules templates public string $twigModulesNamespace = 'modules'

twig\ViewRenderer $uses

$uses public property Namespaces and classes to import. Example: [ 'yii\bootstrap', 'app\assets', \yii\bootstrap\NavBar::className(), ] public array $uses = []

twig\ViewRenderer $twigWidgetsNamespace

$twigWidgetsNamespace public property (available since version 2.0.5) Twig namespace to use in widgets templates public string $twigWidgetsNamespace = 'widgets'

twig\ViewRenderer $twigViewsNamespace

$twigViewsNamespace public property (available since version 2.0.5) Twig namespace to use in templates public string $twigViewsNamespace = \Twig_Loader_Filesystem::MAIN_NAMESPACE

twig\ViewRenderer $twig

$twig public property Twig environment object that renders twig templates public \Twig_Environment $twig = null

twig\ViewRenderer $globals

$globals public property Objects or static classes. Keys of the array are names to call in template, values are objects or names of static classes. Example: ['html' => '\yii\helpers\Html']. In the template you can use it like this: {{ html.a('Login', 'site/login') | raw }}. public array $globals = []

twig\ViewRenderer $options

$options public property Twig options. See also http://twig.sensiolabs.org/doc/api.html#environment-options. public array $options = []