Smarty配置文件

include_once(“Smarty/Smarty.class.php”); //包含smarty类文件

$smarty = new Smarty(); //建立smarty实例对象$smarty

$smarty->config_dir="Smarty/Config_File.class.php";  // 目录变量

$smarty->caching=false; //是否使用缓存,项目在调试期间,不建议启用缓存

$smarty->template_dir = "./templates"; //设置模板目录

$smarty->compile_dir = "./templates_c"; //设置编译目录

$smarty->cache_dir = "./smarty_cache"; //缓存文件夹

//—————————————————-
//左右边界符,默认为{},但实际应用当中容易与JavaScript相冲突
//—————————————————-

$smarty->left_delimiter = "{";

$smarty->right_delimiter = "}";

$smarty->assign("模板变量", "值(数组/变量)");

$smarty->display("模板名称"); 

$smarty->assign("name", "PHP100中文站"); //进行模板变量替换

$smarty->display("index.htm");  // 该文件就是模板文件,应该在模板目录下<br>

Young people start smoking for many reasons — to act older, to be independent, to fit in, to relieve stress, to rebel against adults, and sometimes to be like their The main ingredient in cigarettes is tobacco. Tobacco is a green, leafy plant that is grown in warm climates. Farmers use many chemicals to grow tobacco.

does natural penile enlargement work