smarty/設定

require('Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = '/web/www.example.com/smarty/guestbook/templates/';
$smarty->compile_dir = '/web/www.example.com/smarty/guestbook/templates_c/';
$smarty->left_delimiter = '({';
$smarty->right_delimiter = '})';

  • 下はオプション
    $smarty->config_dir = '/web/www.example.com/smarty/guestbook/configs/';
    $smarty->cache_dir = '/web/www.example.com/smarty/guestbook/cache/';
    $smarty->caching = true;