我想使用 ajax 调用 PHP 文件,在该 PHP 中我将通过 ajax 调用下订单。但是当我使用该文件中的 app/Mage.php 时它会引发错误
require_once '../../../../../../../../../../app/Mage.php';
$customer = Mage::getModel('customer/customer');
然后它说
致命错误:在第 432 行的 app\Mage.php 中的非对象上调用成员函数 getModelInstance()
谁能帮帮我吗???