twig\ViewRenderer addFallbackPaths()

addFallbackPaths() protected method (available since version 2.0.5) Adds fallback paths to twig loader protected void addFallbackPaths ( $loader, $theme )$loader \Twig_Loader_Filesystem $theme yii\base\Theme|null

twig\ViewRenderer addExtensions()

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

twig\ViewRenderer addAliases()

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

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 $twigModulesNamespace

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

twig\ViewRenderer $twigFallbackPaths

$twigFallbackPaths public property (available since version 2.0.5) Twig fallback paths public array $twigFallbackPaths = []

twig\ViewRenderer $twig

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

twig\ViewRenderer $options

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