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
addExtensions() public method Adds custom extensions public void addExtensions ( $extensions )$extensions array @see self::$extensions
addAliases() protected method Adds aliases protected void addAliases ( $loader, $aliases )$loader \Twig_Loader_Filesystem $aliases array
$uses public property Namespaces and classes to import. Example: [ 'yii\bootstrap', 'app\assets', \yii\bootstrap\NavBar::className(), ] public array $uses = []
$twigWidgetsNamespace public property (available since version 2.0.5) Twig namespace to use in widgets templates public string $twigWidgetsNamespace = 'widgets'
$twigViewsNamespace public property (available since version 2.0.5) Twig namespace to use in templates public string $twigViewsNamespace = \Twig_Loader_Filesystem::MAIN_NAMESPACE
$twigModulesNamespace public property (available since version 2.0.5) Twig namespace to use in modules templates public string $twigModulesNamespace = 'modules'
$twigFallbackPaths public property (available since version 2.0.5) Twig fallback paths public array $twigFallbackPaths = []
$twig public property Twig environment object that renders twig templates public \Twig_Environment $twig = null
$options public property Twig options. See also http://twig.sensiolabs.org/doc/api.html#environment-options. public array $options = []
Page 113 of 633