php json数据到菜单不起作用

时间:2017-05-10 11:55:25

标签: javascript php css json github

我有一个模板工作正常,但菜单没有显示 我格式化了css和js文件。所以,看看你是否能找到任何错误,但一切似乎都很好。

This is what it shows up

任何想法为什么它不起作用?

Here is a link to the GitHub repository

1 个答案:

答案 0 :(得分:0)

我发现问题是jsan easy fix


    $json = array (
      'success' => true,
      'auto_list_rooms' => false,
      'auto_subscribe' => false,
      'bosh_service_url' => 'http://host:5280/http-bind/',
      'hide_muc_server' => true,
      'allow_muc' => true,
      'prebind' => true,
      'show_controlbox_by_default' => true,
      'xhr_user_search' => false,
      'jid' => 'user@host',
      'sid' => '',
      'rid' => '',
      'fullname' => 'room',
      'show_call_button' => false,
      'allow_contact_requests' => false,
      'muc_domain' => 'host',
      'show_only_online_users' => true,
      'refresh_page' => false,
    );

    echo header('Content-type:application/json;charset=utf-8');
    echo json_encode($json);