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 a542b37..94c13b7 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 23324ed..3e37de7 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();
        }
 }