欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

这里加上 type 为什么对所有的 items 都有影响 ,导致 以后所有的 $items 的路径 都不起作用 所有的 hook_menu 都不起作用 有大用 有大大用 有大大大用

1) 是因为    'type'=>'MENU_CALLBACK';;;难道  MENU_CALLBACK 不要加引号



function custom_fourteen_translate_menu() { 

   
$items['translate'] = array(
       
'title' =>'',
       //
'type'=>'MENU_CALLBACK',  //这里加上 type 为什么对所有的  items 都有影响 ,导致 以后所有的 $items 的路径 都不起作用
     
'page callback' => 'custom_fourteen_translate_ls_translate',
     
'access callback' => TRUE,
   );

   
return $items;
 }



2) 另外一种情况,可能数据库有问题,要恢复到以前的数据库才行



普通分类: