Joomla4插件getBody

问题描述 投票:0回答:1

在Joomla 3.x版本中,我使用JResponse来获取并设置主体。

function onAfterRender() {
          $content = JResponse::getBody();
          ...
    }

但是在Joomla4中,它返回找不到类'JResponse'] >>。那么如何在Joomla4中获得尸体?

谢谢

在Joomla 3.x版本中,我使用JResponse来获取并设置主体。函数onAfterRender(){$ content = JResponse :: getBody(); ...}但是在Joomla4中,它返回类'JResponse'...

plugins joomla system
1个回答
0
投票

在Joomla4中使用应用程序

© www.soinside.com 2019 - 2024. All rights reserved.