我正在看这个文件:
https://github.com/magentomirror/magento mirror/blob/magento - 1.5 -/- app/code/core/mage/catalog/controllers/productcontroller.php
什么:
$this
和
$this->
是指?
在这种情况下指的是对象" Mage_Catalog_ProductController
"。"$this
"指的是当前对象,所以它相对于从哪个类调用它。
PHP OOP手册