crm-rush/api/soft/smarty/4.5.2/docs/programmers/api-functions/api-set-compile-dir.md

527 B

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() and $compile_dir.