gpt4 book ai didi

magento - 如何在magento Controller 中获取useragent?

转载 作者:行者123 更新时间:2023-12-02 07:28:31 26 4
gpt4 key购买 nike

我需要获取 Controller magento 中用户代理的完整信息。有办法获取吗?

最佳答案

Mage::helper('core/http')->getHttpUserAgent()

在内部,它只是像平常一样访问 $_SERVER,但也执行一些字符编码操作。使用这种方式允许其他模块/开发人员修改返回值,这使其成为 future 的证明。

关于magento - 如何在magento Controller 中获取useragent?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7453522/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com