Magento 1.7 - getModel in script outside web application fails

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

    
        
            Starmall_Shipment_Model
            s         


        
7条回答
  •  抹茶落季
    2021-01-17 04:56

    It is prepending Mage because it is one of the core directories.. In my server, I see /var/www/app/code/core/Mage/ as a navigable path.

    Put your standalone scripts in your mage base dir, and use the following code at the "beginning"

    Hopefully this will be enough to get your magento up and running, then you can figure out why the paths aren't working the way you expect.

提交回复
热议问题