From 7365d78251db557eb9db92eba84db2c6bbc8c03e Mon Sep 17 00:00:00 2001 From: fabien Date: Sat, 10 Oct 2009 08:50:14 +0000 Subject: [PATCH] added the path to cache in the doc examples git-svn-id: http://svn.twig-project.org/trunk@15 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- doc/01-Introduction.markdown | 2 +- doc/03-Twig-for-Developers.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/01-Introduction.markdown b/doc/01-Introduction.markdown index 5b3d72c..18a5a8d 100644 --- a/doc/01-Introduction.markdown +++ b/doc/01-Introduction.markdown @@ -79,7 +79,7 @@ rendering with the `display()` method. Twig also comes with a filesystem loader: [php] - $loader = new Twig_Loader_Filesystem('/path/to/templates'); + $loader = new Twig_Loader_Filesystem('/path/to/templates', '/path/to/cache'); $twig = new Twig_Environment($loader); $template = $twig->loadTemplate('index.html'); diff --git a/doc/03-Twig-for-Developers.markdown b/doc/03-Twig-for-Developers.markdown index eba3148..544e975 100644 --- a/doc/03-Twig-for-Developers.markdown +++ b/doc/03-Twig-for-Developers.markdown @@ -25,7 +25,7 @@ looks roughly like this: require_once '/path/to/lib/Twig/Autoloader.php'; Twig_Autoloader::register(); - $loader = new Twig_Loader_Filesystem('/path/to/templates'); + $loader = new Twig_Loader_Filesystem('/path/to/templates', '/path/to/cache'); $twig = new Twig_Environment($loader); This will create a template environment with the default settings and a loader -- 1.7.2.5