Welcome Guest, Not a member yet? Register   Sign In
best way to load magento automatically with codeigniter?
#1

[eluser]lexusgs430[/eluser]
Hi all.

So Im creating a 2nd admin section using codeigniter for my website, to manage base level product data and link it up with my POS system among other things, and I need to include the magento app.Mage.php - Im wondering if anyone would know the easiest way to do this automatically, I can do it from the view and it works fine. But I tried doing it by creating a library called "Magento.php" with the same code in it, and autoloading it, and go hella error message.

Code:
require_once('../app/Mage.php'); //Path to Magento
umask(0);
Mage::app('default');

Any help appreciated.




Theme © iAndrew 2016 - Forum software by © MyBB