What is Smarty?
Why use it?
Use Cases and Work Flow
Syntax Comparison
Template Inheritance
Best Practices
Crash Course
You may use the Smarty logo according to the trademark notice.
For sponsorship, advertising, news or other inquiries, contact us at:
getCacheDir() — return the directory where the rendered template's output is stored
string getCacheDir();
Example 14.23. getCacheDir()
<?php // get directory where compiled templates are stored $cacheDir = $smarty->getCacheDir(); ?>
See also
setCacheDir()
and
$cache_dir
.