Smarty SJISで使う場合
- Category:
- PHP
Smarty本家クラス extends 時にデリミタをデフォルトのものと変えておく。
SJISだと判別できない。
こんな感じ
$this->Smarty();
$mydir = dirname(__FILE__);
$this->template_dir = "$mydir/../templates/";
$this->compile_dir = "$mydir/templates_c/";
$this->config_dir = "$mydir/configs/";
$this->cache_dir = "$mydir/cache/";
$this->left_delimiter = '<{';
$this->right_delimiter = '}>';