function __construct()
 {
     Controller::Startup();
     $this->smarty = new Smarty();
     $this->smarty->compile_dir = SMARTY_COMPILE_DIR;
     $this->smarty->template_dir = SMARTY_TEMPLATES_DIR;
     if (!file_exists($this->smarty->compile_dir)) {
         mkdir($this->smarty->compile_dir);
     }
 }