PHP Classes

File: htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-set-cache-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-cache-dir.md   Download  
File: htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-set-cache-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: 2 months ago
Size: 524 bytes
 

Contents

Class file image Download

setCacheDir()

set the directory where the rendered template\'s output is stored

Description

Smarty

setCacheDir

string

cache\_dir

<?php

// set directory where rendered template's output is stored
$smarty->setCacheDir('./cache');

// chaining of method calls
$smarty->setTemplateDir('./templates')
       ->setCompileDir('./templates_c')
       ->setCacheDir('./cache');

?>

   

See also getCacheDir() and $cache_dir.