doucezhu3570 2012-06-21 19:26
浏览 29
已采纳

如何让Zen Cart获得服务器XML,JSON(没有html标头)

I am attempting to write a module that uses ajax requests to another page within zen cart. I would like to mark the page that is to serve the data as "Simple": that is, there will be no headers, footers, or additional characters added to the served page (save the XML, JSON).

Is there a setting within Zen Cart that would allow me to mark this page as "Simple"?

  • 写回答

1条回答 默认 最新

  • drzip28288 2012-06-22 10:20
    关注

    You'll want to create a separate .php script which returns just the data you want (without the extraneous information). Don't use the Zen Cart page infrastructure (i.e. don't put the module under includes/modules/pages, etc.) - just create a file for the purpose you need.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥35 MIMO天线稀疏阵列排布问题
  • ¥60 用visual studio编写程序,利用间接平差求解水准网
  • ¥15 Llama如何调用shell或者Python
  • ¥20 谁能帮我挨个解读这个php语言编的代码什么意思?
  • ¥15 win10权限管理,限制普通用户使用删除功能
  • ¥15 minnio内存占用过大,内存没被回收(Windows环境)
  • ¥65 抖音咸鱼付款链接转码支付宝
  • ¥15 ubuntu22.04上安装ursim-3.15.8.106339遇到的问题
  • ¥15 blast算法(相关搜索:数据库)
  • ¥15 请问有人会紧聚焦相关的matlab知识嘛?