added the path to cache in the doc examples
authorfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Sat, 10 Oct 2009 08:50:14 +0000 (08:50 +0000)
committerfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Sat, 10 Oct 2009 08:50:14 +0000 (08:50 +0000)
git-svn-id: http://svn.twig-project.org/trunk@15 93ef8e89-cb99-4229-a87c-7fa0fa45744b

doc/01-Introduction.markdown
doc/03-Twig-for-Developers.markdown

index 5b3d72c..18a5a8d 100644 (file)
@@ -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');
index eba3148..544e975 100644 (file)
@@ -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