我正在查看这个文件:
做什么:
$this
和
$this->
引用?
最佳答案
在这种情况下它指的是对象“Mage_Catalog_ProductController
”。 “$this
”引用当前对象,因此它与调用它的类相关。
关于php - $this 在 magento 的操作中指什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6943158/
我正在查看这个文件:
做什么:
$this
和
$this->
引用?
最佳答案
在这种情况下它指的是对象“Mage_Catalog_ProductController
”。 “$this
”引用当前对象,因此它与调用它的类相关。
关于php - $this 在 magento 的操作中指什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6943158/