added the path to cache in the doc examples

git-svn-id: http://svn.twig-project.org/trunk@15 93ef8e89-cb99-4229-a87c-7fa0fa45744b
This commit is contained in:
fabien
2009-10-10 08:50:14 +00:00
parent 6dd1e0bc07
commit 7365d78251
2 changed files with 2 additions and 2 deletions
+1 -1
View 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');
+1 -1
View 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