Jump to:

21288 Posts in 5733 Topics by 2602 members

General Questions

SilverStripe Forums » General Questions » Trouble loading the Magento Mage Class

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 885 Views
  • dswnz
    Avatar
    Community Member
    9 Posts

    Trouble loading the Magento Mage Class Link to this post

    First and foremost, I'm new to SilverStripe.
    I've been having difficulty trying to require/include the Magento's Mage class (located in the "store" sub folder, see File Map below) from within my page controller.

    File Map:

    SiteRoot
    |-- assets
    |-- cms
    |-- googlesitemaps
    |-- mysite
    |-- store
    | |-- app
    | | |-- Mage.php
    | | `-- …
    | `-- …
    |-- themes
    |-- index.php
    `-- …

    I know of SilverStripes Autoloading and short of destroying my Magento's installation via renaming every class or modifying the SilverStripe core is there a simple way of including the class.

    I've tried a few simple things from my /mysite/code/Page.php such as:

    <?php
    require '../store/app/Mage.php';


    as well, and nothing has availed me.
    Any Tips / Tricks or Tuts would be greatly appreciated.

    885 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.