It is better 'menu' + output of full fieldArray if DEVELOPER is defined.
authorRoland Haeder <roland@mxchange.org>
Tue, 7 Apr 2015 16:33:28 +0000 (18:33 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 7 Apr 2015 16:33:28 +0000 (18:33 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/main/class_BaseFrameworkSystem.php
inc/classes/main/menu/class_BaseMenu.php

index a542b371ffa4c59016377c640b0f7dd4a63950bb..94c13b750e3af3ccf586a58f070cb36472aaaa4e 100644 (file)
@@ -2003,6 +2003,9 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                if (isset($fieldArray[$fieldName])) {
                        // Get it
                        $fieldValue = $fieldArray[$fieldName];
+               } elseif (defined('DEVELOPER')) {
+                       // Missing field entry, may require debugging
+                       self::createDebugInstance(__CLASS__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . ']:fieldArray<pre>=' . print_r($fieldArray, TRUE) . '</pre>,fieldName=' . $fieldName . ' not found!');
                } else {
                        // Missing field entry, may require debugging
                        self::createDebugInstance(__CLASS__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . ']:fieldName=' . $fieldName . ' not found!');
index 23324eddab8131ff0ef9e54121b07c53a6417ada..3e37de7d232e19e6cc59f5997477694b0be4001d 100644 (file)
@@ -80,7 +80,7 @@ class BaseMenu extends BaseFrameworkSystem {
         */
        public function transferContentToTemplateEngine (CompileableTemplate $templateInstance) {
                // Assign menu content to variable
-               $templateInstance->assignVariable('menu_content', $this->getTemplateInstance()->getMenuContent());
+               $templateInstance->assignVariable('menu', $this->getTemplateInstance()->getMenuContent());
                //* DEBUG */ $templateInstance->debugInstance();
        }
 }