Magento 1.7 - getModel in script outside web application fails

后端 未结 7 1839
猫巷女王i
猫巷女王i 2021-01-17 04:31

    
        
            Starmall_Shipment_Model
            s         


        
相关标签:
7条回答
  • 2021-01-17 05:16

    The problem is indeed in app/etc/local.xml, but it shouldn't be solved by calling Mage::app()->loadModules().

    The real issue is that someone (most likely for debugging purposes) disabled local modules.

    Just change

    <disable_local_modules>true</disable_local_modules>
    

    to

    <disable_local_modules>false</disable_local_modules>
    

    in app/etc/local.xml.

    0 讨论(0)
提交回复
热议问题