Я думаю, что вы можете понять это, проверив класс базового представления. Например,
class View
{
protected $tpl;
protected $tplfilename;
public function __construct()
{
$this->tpl = new Smarty();
$this->tpl->template_dir = dirname(__FILE__)."/templates";
$this->tpl->compile_dir = dirname(__FILE__)."/templates_c";
$this->tpl->config_dir = dirname(__FILE__)."/configs";
$this->tpl->cache_dir = dirname(__FILE__)."/cache";
$this->tpl->left_delimiter = "{|";
$this->tpl->right_delimiter = "|}";
$this->tplfilename = "default.tpl";
}
public function show()
{
$this->tpl->display($this->tplfilename);
}
}
Вероятно, это должен быть типичный умный стиль.