Class yii\twig\Twig_Empty_Loader

Inheritanceyii\twig\Twig_Empty_Loader
ImplementsTwig_LoaderInterface
Source Code https://github.com/yiisoft/yii2-twig/blob/master/src/Twig_Empty_Loader.php

Empty loader used for environment initialisation

Method Details

Hide inherited methods

exists() public method

public void exists ( $name )
$name

                public function exists($name)
{
    return false;
}

            
getCacheKey() public method

public void getCacheKey ( $name )
$name

                public function getCacheKey($name)
{
    throw new \Twig_Error_Loader("Can not render using empty loader");
}

            
getSourceContext() public method

public void getSourceContext ( $name )
$name

                public function getSourceContext($name)
{
    throw new \Twig_Error_Loader("Can not render using empty loader");
}

            
isFresh() public method

public void isFresh ( $name, $time )
$name
$time

                public function isFresh($name, $time)
{
    throw new \Twig_Error_Loader("Can not render using empty loader");
}