PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Name

setCompileDir() — set the directory where compiled templates are stored

Description

Smarty setCompileDir(string compile_dir);

Example 206. setCompileDir()



<?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.

Smarty Template Engine