[PHP-users 32308] Re: お世話になります。(Smartyが動かない)

Takashi Nakao kalze @ fakelife.info
2007年 6月 13日 (水) 17:12:06 JST


中尾といいます。


> hello.phpのおいてあるフォルダ内に
> templatesフォルダはあり、その中にhello.tplはあります。
> templates_cフォルダもhello.phpと同じフォルダにあります。

ということで、template等のディレクトリとhello.phpは
同じディレクトリにあると。

上位ディレクトリ
	├ hello.php
	├ templates
	└ templates_c

実際にはこういう構成になっている。


> $o_smarty->template_dir="../templates/";
> $o_smarty->compile_dir="../templates_c/";

でも、指定しているのは、"../templates/"になってますから、
hello.phpの一つ上のディレクトリになってるような。

├上位ディレクトリ
│	└hello.php
├templates
└templates_c

指定しているのは、こういう構成ですよね

$o_smarty->template_dir="./templates/";
$o_smarty->compile_dir="./templates_c/";

と同じディレクトリ指定してみるとどうなりますか?





PHP-users メーリングリストの案内