Class yii\twig\Twig_Empty_Loader
| Inheritance | yii\twig\Twig_Empty_Loader | 
|---|---|
| Implements | Twig\Loader\LoaderInterface | 
| Source Code | https://github.com/yiisoft/yii2-twig/blob/master/src/Twig_Empty_Loader.php | 
Empty loader used for environment initialisation
Public Methods
| Method | Description | Defined By | 
|---|---|---|
| exists() | yii\twig\Twig_Empty_Loader | |
| getCacheKey() | yii\twig\Twig_Empty_Loader | |
| getSourceContext() | yii\twig\Twig_Empty_Loader | |
| isFresh() | yii\twig\Twig_Empty_Loader | 
Method Details
| public void getCacheKey ( $name ) | ||
| $name | ||
                public function getCacheKey($name)
{
    throw new LoaderError("Can not render using empty loader");
}
            
        
| public void getSourceContext ( $name ) | ||
| $name | ||
                public function getSourceContext($name)
{
    throw new LoaderError("Can not render using empty loader");
}
            
        
| public void isFresh ( $name, $time ) | ||
| $name | ||
| $time | ||
                public function isFresh($name, $time)
{
    throw new LoaderError("Can not render using empty loader");
}