doujiang2020 2014-09-16 10:48
浏览 62
已采纳

Joomla 3 Registry :: loadJSON

I'm working through the tutorial to write a component for Joomla 3. Last complete Joomla 3 lesson . The part that I'm busy with is Developing a MVC Component/Adding configuration. So I look at the 2.5 tutorial but it uses a deprecated function called Registry::loadJSON()

Where can I find info on what to use? (I've googled, a lot, but can't find any info).

  • 写回答

1条回答 默认 最新

  • drls2738 2014-09-18 07:51
    关注

    blush It is in the comment

    // loadJSON is @deprecated    12.1  Use loadString passing JSON as the format instead.
    //$params->loadString($this->item->params, 'JSON');
    

    The only thin is that $this->item->params should be $this->params (This is also in the comments)

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

报告相同问题?

悬赏问题

  • ¥15 宇视监控服务器无法登录
  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
  • ¥50 STM32单片机传感器读取错误
  • ¥50 power BI 从Mysql服务器导入数据,但连接进去后显示表无数据
  • ¥15 (关键词-阻抗匹配,HFSS,RFID标签天线)