Hello,
I have created from the video tutorial 1 by 1 a dynamic menu
but when I run it I get the following error message
Parse error: syntax error, unexpected ‘$id_item’ (T_VARIABLE), expecting ‘]’ in D:\Programme\NetMake\v8\wwwroot\scriptcase\app\BlueOrganizer\menu\index.php on line 640
Can anybody help me?
my code by menu Event onLoad
sc_appmenu_reset(menu);
sc_appmenu_create(menu);
sc_lookup(dsmenu,"
SELECT
id,
parent,
description,
link
FROM
menu
ORDER BY
parent,
node_order");
foreach({dsmenu} as $arr_menu){
$id_item = ‘item_’.$arr_menu[0];
if ($arr_menu[1] == 0){
$id_parent = '';
}else{
$id_parent = 'item_'.$arr_menu[1];
}
sc_appmenu_add_item(
'menu'
$id_item, // line 640
$id_parent,
$arr_menu[2],
$arr_menu[3],
"","","",""
);
}