Version: 9.10.023 (27)
I have a dynamic new menu, but when I try to add parameters an error 500 occurs:
Without parameters work:
sc_appmenu_add_item(“menu_ppal”,$id_item,$id_parent,$rsm->fields[3],$rsm->fields[5], “”, $rsm->fields[7],"","_self");
If the parameters are hardcoded, It also works:
sc_appmenu_add_item(“menu_ppal”,$id_item,$id_parent,$rsm->fields[3],$rsm->fields[5], “param=1”, $rsm->fields[7],"","_self");
But, if the parameter is stored in a variable then doesn’t work, an 500 internal error occurs:
$param = “param=1”;
sc_appmenu_add_item(“menu_ppal”,$id_item,$id_parent,$rsm->fields[3],$rsm->fields[5], $param, $rsm->fields[7],"","_self");
any ideas or suggestions?
Thanks in advance!