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 files changed, 5 insertions(+), 0 deletions(-) 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. * -- 1.7.2.5