我想調用一個PHP文件使用ajax在那裏PHP我會下令由ajax呼叫。但是,當我使用應用程序/ Mage.php從該文件中拋出錯誤Magento:致命錯誤:調用成員函數getModelInstance()在應用程序 Mage.php中的非對象在線432
require_once '../../../../../../../../../../app/Mage.php';
$customer = Mage::getModel('customer/customer');
然後它說
Fatal error: Call to a member function getModelInstance() on a non-object in app\Mage.php on line 432
任何人都可以請幫我嗎?
我已經解決了它使用 解決它210 $ customer = new Mage_Customer_Model_Customer(); 而不是使用 $ customer = Mage :: getModel('customer/customer'); – itsazzad