mirror of
https://github.com/smarty-php/smarty.git
synced 2025-07-02 02:11:00 +02:00
33 lines
527 B
Markdown
33 lines
527 B
Markdown
![]() |
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).
|