
May 5th, 2006, 01:10 AM
|
|
|
|
Join Date: Apr 2007
Location: spencer IN.
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
html_menu
I am tryin to get rollin with html_menu
I don't think I'm getting the hash correct...
the error I'm getting:
Fatal error: Only variables can be passed by reference in /usr/lib/php/HTML/Menu.php on line 306
Code:
$inside_sub = array('title'=>'webDesign','url'=>'http://some_site.com/digital_portfolio/');
$parent_menu= array('title'=>'some_site','url'=>'http://some_site.com/', 'sub'=> $inside_sub );
//just to test my menu hash
print_r($parent_menu);
// Load the class
require_once 'HTML/Menu.php';
// Instantiate the menu object
$menu =& new HTML_Menu($parent_menu, 'tree');
// Output the menu
$menu->show();
|