PHP Classes

File: htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-set-compile-dir.md

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-set-compile-dir.md   Download  
File: htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-set-compile-dir.md
Role: Example script
Content type: text/markdown
Description: Example script
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 1 month ago
Size: 527 bytes
 

Contents

Class file image Download

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.