X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=857b1561ba6e88ae5e09a3c20ef388835583df1a;hb=dc04e55def03254804a31afc4aa2b9d7a7d2bfe4;hp=48976ab9738d0d5034fd46860f766b190a987402;hpb=55b327a3f5f2fe1d244532e07be7444e94b2a768;p=shipsimu.git diff --git a/index.php b/index.php index 48976ab..857b156 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ readConfig('tpl_engine'); + $tpl = FrameworkConfiguration::getInstance()->readConfig('template_class'); $lang = LanguageSystem::getInstance(); $io = FileIoHandler::getInstance(); @@ -78,7 +78,7 @@ class ApplicationEntryPoint { // Use the template engine for putting out (nicer look) the message try { // Get the template instance from our object factory - $tplEngine = ObjectFactory::createObjectByConfiguredName('tpl_engine', array(FrameworkConfiguration::getInstance()->readConfig('tpl_base_path'), $lang, $io)); + $tplEngine = ObjectFactory::createObjectByConfiguredName('template_class', array(FrameworkConfiguration::getInstance()->readConfig('tpl_base_path'), $lang, $io)); } catch (BasePathIsEmptyException $e) { die(sprintf("[Main:] Could not initialize template engine for this reason: %s", $e->getMessage() @@ -110,6 +110,7 @@ class ApplicationEntryPoint { // Assign variables $tplEngine->assignVariable('message', $message); $tplEngine->assignVariable('backtrace', $backtrace); + $tplEngine->assignVariable('total_includes', ClassLoader::getInstance()->getTotal()); $tplEngine->assignVariable('total_objects', ObjectFactory::getTotal()); // Load the template