aboutsummaryrefslogblamecommitdiffstats
path: root/vendor/smarty/smarty/docs/programmers/api-functions/api-set-compile-dir.md
blob: bfeb55a53a3a29d79d3cff4ca3d840820bca82cc (plain) (tree)































                                                        
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).