ねえ、私はこのようなことをしようとしています:
<?php
class MySmarty extends Smarty {
public function __construct() {
parent::__construct();
$smartyRoot = '/home/smarty/';
parent::setTemplateDir($smartyRoot. "/templates/");
parent::setCompileDir($smartyRoot."/templates_c/");
parent::setCacheDir($smartyRoot."/cache/");
parent::setConfigDir($smartyRoot."/configs/");
}
}
$smarty = new MySmarty();
$smarty->display("index.tpl");
?>
しかし、それはSmartyException("Unable to load template file")
. 163行目から、表示を行う前smarty_internal_template.php
に の存在をチェックしているように見え$this
ます。
私のシステムは正しくセットアップされているよう$smarty->set*Dir($smartyRoot.'foo');
です。
何か案は?