Jun
3 d.
2009

OXID framework init

This is the minimal PHP code required for OXID eShop initialization

//change this
$sOxidConfigDir = "/htdocs/oxideshop/eshop/source/";
 
function getShopBasePath()
{
    global $sOxidConfigDir;
    return $sOxidConfigDir . "/";
}
require_once(getShopBasePath(). "/core/oxfunctions.php");
require_once(getShopBasePath() ."/core/adodblite/adodb.inc.php");
 
//now you can fully use the framework e.g.:
//$oArticle = oxNew("oxarticle");

I hope that was helpful.

Responses

  1. wanis says:

    or if you want to init 2.7 or 3.0 version use:
    [code]

  2. wanis says:

    once again:
    function getShopBasePath(){
    return dirname(__FILE__). “/”;
    }
    require_once( getShopBasePath().”oxconfig.php”);
    require_once( “ubase.php”);

Leave a Reply