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;
     }
 }
Example #2
0
 /**
  * Generate an template path for the template.
  *
  * @param  string  $path
  * @param  bool    $secure
  * @return string
  */
 function res($path)
 {
     return \WebAPL\Template::path($path);
 }