<?php
require('libs/Smarty.class.php');
$smarty = new Smarty;
//$smarty->force_compile = true;
$smarty->template_dir = 'templates';
$smarty->compile_dir = 'templates_c';
$smarty->config_dir = 'configs';
$smarty->cache_dir = 'cache';
$smarty->left_delimiter = "<{";
$smarty->right_delimiter = "}>";
$smarty->debugging = false;
$smarty->caching = true;
$smarty->allow_php_templates= true;
$smarty->force_compile = false;
$smarty->cache_lifetime = 0;
?>
其中的debugging=true;为什么会弹出对话框
require('libs/Smarty.class.php');
$smarty = new Smarty;
//$smarty->force_compile = true;
$smarty->template_dir = 'templates';
$smarty->compile_dir = 'templates_c';
$smarty->config_dir = 'configs';
$smarty->cache_dir = 'cache';
$smarty->left_delimiter = "<{";
$smarty->right_delimiter = "}>";
$smarty->debugging = false;
$smarty->caching = true;
$smarty->allow_php_templates= true;
$smarty->force_compile = false;
$smarty->cache_lifetime = 0;
?>
其中的debugging=true;为什么会弹出对话框
这个是smarty调试报错的配置,如果为false的话smarty出错了就什么都没有
你调试起来就不是很方便