php - $this 在 magento 的操作中指什么?

标签 php magento

最佳答案

在这种情况下它指的是对象“Mage_Catalog_ProductController”。 “$this”引用当前对象,因此它与调用它的类相关。

PHP Manual for OOP

关于php - $this 在 magento 的操作中指什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6943158/

相关文章:

php - 如何将 PayPal 与 Sylius 集成

php - 如何检查 mysqli 中传递的值是否正确

php - 将多级子父类别打印到 optgroup 和 selectbox

php - wordpress wp_get_current_user 数据未显示在 json-api 中

python - 我的 magento python 客户端没有安装

php - 为了编辑 magento 中产品的基本价格,应该更新哪些所有表格?

php - jQuery 中两列的乘法

Magento 管理员更改订单状态

magento - 预配置的 Magento 小部件

magento - 为什么当最后添加的报价项目没有错误时,magento 会从销售报价中删除错误信息