21288 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 885 Views |
-
Trouble loading the Magento Mage Class

2 August 2010 at 5:11pm
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 |

