我对php类和范围有疑问,特别是Magento。 我收到以下错误,但其他方法有效,
致命错误:调用未定义的函数getChildCategories()
使getChildCategories()方法工作需要什么语法?
ALTER TABLE ADD|REPLACE COLUMNS
...在文件中包含/ mycompany_report_inventory.php
require_once '/var/www/myshop/app/Mage.php';
include "includes/mycompany_report_inventory.php";
Mage::app();
$category_collection = Mage::getModel('catalog/category')
->getCollection()
->addAttributeToSelect('*');
// instantiate and execute inventory report
$mycompany_report_inventory = new mycompany_report_inventory();
$x = $mycompany_report_inventory->GetData($category_collection);