Set compile directory
public setCompileDir ( string $compile_dir ) : Smarty | ||
$compile_dir | string | directory to store compiled templates in |
return | Smarty | current Smarty instance for chaining |
$smarty->setCompileDir('/path/to/compiled/templates');
$smarty->setCompileDir('/var/www/myapp/templates_c');This code sets the path to the templates_c directory, where compiled templates will be stored. This function is part of the Smarty PHP template engine package.
public setCompileDir ( string $compile_dir ) : Smarty | ||
$compile_dir | string | directory to store compiled templates in |
return | Smarty | current Smarty instance for chaining |