Ich habe die Server-Site heruntergeladen und auf localhost ausgeführt. Aber er ruft die Dateien nicht richtig an. Zuerst ruft er "http://localhost" und dann den Ordnerpfad mit Backslash.Site mit falschem Anruf auf localhost
Es gibt eine Regel gesetzt, alle Dateien zu nennen:
<?php
define("MY_BASE_DIR", 'C:');
define("SITE_PATH", __DIR__ . '/');
define("SITE_VIRTUAL_DIR", str_replace($_SERVER["DOCUMENT_ROOT"], "", SITE_PATH));
define("ENGINE_PATH", SITE_PATH.'includes/fw/'); // caminho pro FW
define("CMS_ENGINE_PATH", SITE_PATH.'includes/cms/cms.php');
?>
ich diese Regel zu ändern versucht, aber ohne Erfolg /:
Diese Backslash Einstellung ist eine Passage in die Code-Dateien, die sich geändert haben oder ob es meine lokale Server-Konfiguration ist (ich benutze WampServer)?
Dies ist die Datei, weicht die Dateien: von TEMPLATE_URL
genannt
public function Setup()
{
parent::Setup();
if (\Browser::Obsolet())
{
$this->context->UpdateYourBrowser();
}
if(!defined("ADMIN_DIR")){
define("ADMIN_DIR", dirname($_SERVER["SCRIPT_NAME"]) . "/");
define("ADMIN_URL", DOMAIN . ADMIN_DIR);
}
if(!defined("ADMIN_PATH"))
{
throw new \Exception("Para acessar um módulo do backend você precisa esta no diretorio do admin/");
}
// configura a sessao do usuario
$this->context->set("USER.SESSION", $this->context->get("USER.SESSION") . ADMIN_PATH . "_ADMIN");
// configura o template do ADMIN
// checa se o usuario especificou algum caminho para o template do ADMIN
$templatePath = $this->context->get("CMS.ADMIN.TEMPLATE_PATH");
if(!$templatePath){
$templatePath = ADMIN_PATH;
}
$this->context->setTemplatePath($templatePath); //diretorio raiz de templates?
$this->context->setTemplate($this->context->get('CMS.ADMIN.TEMPLATE')); // seta o template configurado no config.php
// checa se o usuario especificou algum caminho para o template do ADMIN
$templateUrl = $this->context->get("CMS.ADMIN.TEMPLATE_URL");
if(!$templateUrl){
$templateUrl = ADMIN_DIR; // URI do admin: http://localhost/admin/
}
if(!defined("TEMPLATE_URL"))
define("TEMPLATE_URL", $templateUrl . $this->context->TemplateDir() . $this->context->getTemplate() . "/");
}
Die Dateien werden:
<link rel="stylesheet" href="<?php echo TEMPLATE_URL ?>static/css/bootstrap.min.css" rel="stylesheet">
Ich bin immer noch direkt zu nennen versuchen, ihn zu bekommen, aber ohne Erfolg.
Nichts/:. Ich habe auch versucht, das "__DIR__" für "__FILE__" ebenfalls zu modifizieren. Ohne Erfolg – Zkk