added Twig_Environment::load() as an alias for loadTemplate()

This commit is contained in:
Fabien Potencier
2011-03-22 11:58:42 +01:00
parent 79ab9babed
commit 47fa8535b6
+5
View File
@@ -269,6 +269,11 @@ class Twig_Environment
return $this->templateClassPrefix;
}
public function load($name)
{
return $this->loadTemplate($name);
}
/**
* Loads a template by name.
*