作者:mobiledu2502897207 | 来源:互联网 | 2023-05-17 12:17
Warning:Missingargument1forfunctionabc()警告:函数abc()缺少参数1functionort_view_menu(){$
Warning: Missing argument 1 for function abc()
警告:函数abc()缺少参数1
function ort_view_menu() {
$items['thick_box_view'] = array(
'title' => 'Viewed Details',
'description' => 'g a report',
'page callback' => 'abc',
'type' => MENU_CALLBACK,
'access callback' => TRUE,
);
return $items;
}
function abc($nid) {
$rows = array();
$node = node_load($nid);
Is the error caused due to $nid used in the function ?
这个错误是由于函数中使用了$nid引起的吗?
2 个解决方案