diff --git a/doc/01-Introduction.markdown b/doc/01-Introduction.markdown index 5b3d72c91..18a5a8d5a 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 eba31484a..544e975b0 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