diff options
Diffstat (limited to 'vendor/smarty/smarty/docs/programmers/api-functions/api-set-compile-dir.md')
-rw-r--r-- | vendor/smarty/smarty/docs/programmers/api-functions/api-set-compile-dir.md | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vendor/smarty/smarty/docs/programmers/api-functions/api-set-compile-dir.md b/vendor/smarty/smarty/docs/programmers/api-functions/api-set-compile-dir.md new file mode 100644 index 000000000..bfeb55a53 --- /dev/null +++ b/vendor/smarty/smarty/docs/programmers/api-functions/api-set-compile-dir.md @@ -0,0 +1,32 @@ +setCompileDir() + +set the directory where compiled templates are stored + +Description +=========== + +Smarty + +setCompileDir + +string + +compile\_dir + + + <?php + + // set directory where compiled templates are stored + $smarty->setCompileDir('./templates_c'); + + // chaining of method calls + $smarty->setTemplateDir('./templates') + ->setCompileDir('./templates_c') + ->setCacheDir('./cache'); + + ?> + + + +See also [`getCompileDir()`](#api.get.compile.dir) and +[`$compile_dir`](#variable.compile.dir). |