Get Smarty

Donate

Paypal

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Advertisement

Name

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

Description

Smarty setCompileDir(string compile_dir);

Example 14.44. 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.

Comments
No comments for this page.

Advertisement