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.
or if you want to init 2.7 or 3.0 version use:
[code]
once again:
function getShopBasePath(){
return dirname(__FILE__). “/”;
}
require_once( getShopBasePath().”oxconfig.php”);
require_once( “ubase.php”);