DB_NestedSet TigraMenu Renderer

From: Date: Fri, 18 Jul 2003 06:25:25 +0000
Subject: DB_NestedSet TigraMenu Renderer
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6660@lists.php.net to get a copy of this message
Hi everyone, I was just trying out DB_NestedSet with the TigraMenu renderer from the examples/documentation at: http://oss.webcluster.at after carefully following the example instructions I have errors in menu_items.php output (see end of post) I know these errors can be turned off using error_reporting(0) but when I try that no javascript errors are produced but the menu is just renders a bunch of garbled links on top of each other, can anyone see what the problem may be ? Any help apptreciated would really like to see this working, It seems that DB_NestedSet functions as expected which is always good :) Regards, Joseph menu_items.php---> Notice: Undefined index: menu_id in /usr/local/Zend/lib/php/DB/NestedSet/TigraMenu.php on line 77 Notice: Undefined offset: 0 in /usr/local/Zend/lib/php/DB/NestedSet/TigraMenu.php on line 146 Notice: Undefined variable: tigraMenu in /usr/local/Zend/lib/php/DB/NestedSet/TigraMenu.php on line 151 Notice: Undefined offset: 1 in /usr/local/Zend/lib/php/DB/NestedSet/TigraMenu.php on line 146 Notice: Undefined variable: tigraMenu in /usr/local/Zend/lib/php/DB/NestedSet/TigraMenu.php on line 151 Notice: Undefined variable: tigraMenu in /usr/local/Zend/lib/php/DB/NestedSet/TigraMenu.php on line 151 var MENU_ITEMS0 = new Array(); MENU_ITEMS0 = [ ['My pretty 1st rootnode', null, ['This is the one and only child of the pretty 1st rootnode', null, ], ], ['My pretty 2nd rootnode', null, ['Child 1 of the 2nd pretty rootnode', null, ], ],]; var MENU_STYLES0 = new Array(); MENU_STYLES0['onmouseout'] = [ 'color', ['#FF0000', '#000000'], 'background', ['#000000', '#CCCCCC'], 'textDecoration', ['none', 'none'], 'border', ['1px solid #FFFFFF', '1px solid #FFFFFF'], 'fontSize', ['11px', '11px'], 'fontFamily', ['Verdana, Arial, Helvetica, sans-serif', 'Verdana, Arial, Helvetica, sans-serif'], 'fontWeight', ['bold', 'normal'], 'textAlign', ['center', 'left'], 'padding', ['2px', '2px'], ]; MENU_STYLES0['onmouseover'] = [ 'color', ['#FFFFFF', '#FFFFFF'], 'background', ['#000000', '#EEEEEE'], 'textDecoration', ['none', 'none'], ]; MENU_STYLES0['onmousedown'] = [ 'color', ['#FFFFFF', '#FFFFFF'], 'background', ['#000000', '#EEEEEE'], 'textDecoration', ['none', 'none'], ]; var MENU_POS0 = new Array(); MENU_POS0['width'] = [120, 342]; MENU_POS0['height'] = [21, 21]; MENU_POS0['left'] = [119, 0]; MENU_POS0['top'] = [0, 20]; MENU_POS0['block_left'] = [169, 0]; MENU_POS0['block_top'] = [121, 20]; MENU_POS0['hide_delay'] = [200, 2000];

« previous php.pear.general (#6660) next »