Example #1
0
 /**
  * Initialize module
  * This function is called on bootstrap
  */
 public static function __init()
 {
     $template = Template::findTemplate();
     Template::setTemplate($template);
     $startup_file = $_SERVER['DOCUMENT_ROOT'] . Template::path('startup.php', 'frontend', \SettingsModel::one('template_frontend'));
     if (file_exists($startup_file)) {
         include $startup_file;
     }
 }