<?php
$root = dirname(__FILE__).DIRECTORY_SEPARATOR;
define ("ROOT",$root);
include ROOT."smarty/Smarty.class.php";
$smarty = new Smarty();
$smarty->template_dir=ROOT."templates";
$smarty->compile_dir=ROOT."templates_c";
$smarty->config_dir=ROOT."configs";
/*
*
* 由于里面这个页面的容都要调用,所以都要设置成绝对路径,定义本页面的名字为smarty.inc.php,然后用其他页面直接调用些
页面就可以了,如果要加其他的配置的话,那么直接在这个页面里面配置就可以了
*
* */
?>
