From 47fa8535b6a57bd1aaaf65adcce95b53fa9ae2a1 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 22 Mar 2011 11:58:42 +0100 Subject: [PATCH] added Twig_Environment::load() as an alias for loadTemplate() --- lib/Twig/Environment.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Twig/Environment.php b/lib/Twig/Environment.php index 92809ede9..440a2f3b4 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. *