From: Fabien Potencier Date: Tue, 22 Mar 2011 10:58:42 +0000 (+0100) Subject: added Twig_Environment::load() as an alias for loadTemplate() X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=47fa8535b6a57bd1aaaf65adcce95b53fa9ae2a1;p=konrad%2Ftwig.git added Twig_Environment::load() as an alias for loadTemplate() --- diff --git a/lib/Twig/Environment.php b/lib/Twig/Environment.php index 92809ed..440a2f3 100644 --- a/lib/Twig/Environment.php +++ b/lib/Twig/Environment.php @@ -269,6 +269,11 @@ class Twig_Environment return $this->templateClassPrefix; } + public function load($name) + { + return $this->loadTemplate($name); + } + /** * Loads a template by name. *