zugreifen Ich verwende Prestashop 1.4.3 Version. Und ich möchte Benutzerdaten in Wordpress erhalten. Ich habe unten Code ohne Glück versucht. Geben Sie mir dieses Fatal error:Wie Prestashop Funktionen in WordPress
Class 'FrontController' not found in /opt/lampp/htdocs/domin.com/prestashop/init.php on line 28.
Hier ist mein Skript:
$psabspath = '';
$psabspath = $_SERVER['DOCUMENT_ROOT'] . '/domin.com/prestashop/';
if ($psabspath != '' && file_exists($psabspath . 'config/config.inc.php')
&& (file_exists($psabspath . 'classes/FrontController.php') ||
file_exists($psabspath . 'classes/controller/FrontController.php'))) {
require_once($psabspath . 'init.php');
require_once($psabspath . 'config/config.inc.php');
class PrestaShopIntegration_FrontController extends FrontController {
public function __destruct()
{
if (Context::getContext()->cookie)
Context::getContext()->cookie->write();
}
public function init() {
$this->page_name = 'wordpress';
parent::init();
if (isset($this->context)) {
if (version_compare(_PS_VERSION_, '1.5.4', '>='))
$this->setMedia();
if ($this->checkAccess()) {
$this->postProcess();
$this->initHeader();
if ($this->viewAccess())
$this->initContent();
else
$this->errors[] = Tools::displayError('Access denied.');
$this->initFooter();
}
}
}
}
}
Schwerwiegender Fehler: Klasse "Konfiguration" nicht in /opt/lampp/htdocs/domin.com/prestashop/config/config.inc.php in Zeile 105 gefunden. –
Und Zeile 105 haben diesen Code Configuration :: loadConfiguration() ; –
Ok, ich werde Ihre spezifische Prestashop-Version herunterladen, testen und so schnell wie möglich zurückkommen. –