Esempio n. 1
0
 /**
  * Sets the template to render. Returns the template if nothing is passed in
  * @param string $tpl
  */
 public static function template($tpl = null)
 {
     if ($tpl == null) {
         return self::$template;
     } else {
         self::$template = $tpl;
     }
 }
 /**
  * Install step 5
  * Display message about end of install and finish installation
  */
 protected function install_step5()
 {
     Fabriq::title('Install complete');
     FabriqTemplates::template('fabriqinstall');
     // delete session variables
     unset($_SESSION['FAB_INSTALL_site']);
     unset($_SESSION['FAB_INSTALL_db']);
     unset($_SESSION['FAB_INSTALL_mods_installed']);
 }