index.phpの$smarty->displayを絶対パスで指定すると問題なく表示できます
setup.phpの$this->template_dirに設定した絶対パスは何度も確認したのですが合ってます
どなたかご教示お願いします。
■C:/Apache/htdocs/setup.php
<?php
require('C:/Apache/htdocs/libs/Smarty.class.php');
class Smarty_Test extends Smarty {
function Smarty_Test() {
$this->Smarty();
$this->template_dir = 'C:/Apache/htdocs/templates/';
$this->compile_dir = 'C:/Apache/htdocs/templates_c/';
$this->config_dir = 'C:/Apache/htdocs/configs/';
$this->cache_dir = 'C:/Apache/htdocs/cache/';
}
}
?>
■C:/Apache/htdocs/index.php
<?php
require('setup.php');
$smarty = new Smarty_Test();
$smarty->display('index.tpl');
?>