private function enableSmarty()
    {
        if ($this->smarty !== NULL)
        {
            return;
        }

        $this->smarty = new Smarty;
        $this->smarty->setTemplateDir(PUBLIC_DIR);
        $this->smarty->setCompileDir(PUBLIC_DIR . 'smarty' . DSC . 'compile');
        $this->smarty->setCacheDir(PUBLIC_DIR . 'smarty' . DSC . 'cache');
    }