在我的模块文件中,我创建了一个新菜单项
function xmlproject_menu()
{
$items = array();
//more items here
$items['system/xml/cfa/initialize/%/%/%/%/%'] = array(
'page callback' => 'xmlproject_initialize_cf',
'page arguments' => array(4, 5, 6, 7, 8,),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}
function xmlproject_initialize_cf($session_id, $cart_id, $pid, $rid, $partner_id)
{
//some code here
}
我尝试去 admin/build/modules、devel/menu/reset 和 admin/settings/performance 来清除缓存。我可以看到数据库中的菜单项(menu_router)。
当我转到http://example.com/system/xml/cfa/initialize/1/2/3/4/5时,我收到“找不到页面”。