public function fetch($template, $parameters = [])
    {
        try {
            if (count($parameters) > 0) {
                $this->smarty->assign($parameters);
            }

            return $this->smarty->fetch($template);
        } catch (\Exception $e) {
            throw new SmartyException($e->getMessage());
        }
    }