自己在根目录添加了一个 a.php<?php
include(dirname(__FILE__).'/config/config.inc.php');
$smarty->display(_PS_THEME_DIR_.'payment-inf.tpl');
?>
接着在/themes/iestore/添加了一个a.tpl{include file=$tpl_dir./header.tpl}<h2>{l s='My new page.'}</h2>{include file=$tpl_dir./footer.tpl}
结果链接到a.php一片空白,不知道怎么弄,
请高人指点一下!
include(dirname(__FILE__).'/config/config.inc.php');
$smarty->display(_PS_THEME_DIR_.'payment-inf.tpl');
?>
接着在/themes/iestore/添加了一个a.tpl{include file=$tpl_dir./header.tpl}<h2>{l s='My new page.'}</h2>{include file=$tpl_dir./footer.tpl}
结果链接到a.php一片空白,不知道怎么弄,
请高人指点一下!
$smarty实例化了吗??
include(dirname(__FILE__).'/config/config.inc.php');
$smarty->display(_PS_THEME_DIR_.'a.tpl');
?>也不行啊!访问a.php页面一片空白!
include('*******/smarty/Smarty.class.php');
$smarty = new Smarty();
echo _PS_THEME_DIR_.'a.tpl';//再看下这个地址是不是正确的
$smarty->display(_PS_THEME_DIR_.'a.tpl');