X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=857b1561ba6e88ae5e09a3c20ef388835583df1a;hb=56459e5bcba52c635e971cd0918e8270447dd468;hp=1a3a883e19c89856e701d3b408e225231d7655fe;hpb=ca005df6eb0608fa12b23382b8ae8d1b526da4af;p=shipsimu.git diff --git a/index.php b/index.php index 1a3a883..857b156 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,6 @@ + * @author Roland Haeder * @version 0.0.0 * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.ship-simu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -37,8 +36,8 @@ class ApplicationEntryPoint { * @return void */ private static $instances = array ( - 'cfg', // The configuration system - 'loader', // The class loader system + 'cfg', // The configuration system + 'loader', // The class loader system 'debug', // Debug output 'db', // Database layer 'io', // Base I/O system (local file [or network]) @@ -70,7 +69,7 @@ class ApplicationEntryPoint { } // Get some instances - $tpl = FrameworkConfiguration::getInstance()->readConfig('tpl_engine'); + $tpl = FrameworkConfiguration::getInstance()->readConfig('template_class'); $lang = LanguageSystem::getInstance(); $io = FileIoHandler::getInstance(); @@ -79,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() @@ -111,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