Smarty的路径问题
htdocs/中:
a/templates
a/b
a/SmartyConfig.php
a/b/index.php中需要引用a/templates/b/index.htm,Smarty的路径变/常量应该怎样设置?
=========================================================================
目前的设置:
a/SmartyConfig.php:
define('__SITE_ROOT', '/a');
$tpl->template_dir = __SITE_ROOT . "/templates/";
a/b/index.php:
require "../SmartyConfig.php";
$tpl->display("b/index.htm");
提示找不到文件。
谢谢