public function display($template, $cache_id = null) { waConfig::set('current_smarty', $this); $this->prepare(); $this->smarty->display($template, $cache_id); }