Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Kalendarz nie widzi ścieżki do pliku
artgrus
post 14.11.2010, 14:27:12
Post #1





Grupa: Zarejestrowani
Postów: 73
Pomógł: 0
Dołączył: 27.03.2008

Ostrzeżenie: (10%)
X----


Witam.

Niewiem czy ktoś zna z was CMS o nazwie MODX (link do strony modxa).

Na stronie tej (którą podałem) znajdują się różne paczki / pluginy. Znalazłem coś takiego jak "Kalender". Wyświetla on kalendarz na stronie (kontrola nad stroną sprawuje MODx).

Wszystko zrobiłem zgodnie z instrukcją. Dobrze jest, tylko że wywala mi taki błąd:

Cytat
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »

PHP error debug
Error: include(D:/WampServer2/www/stronaassets/snippets/kalender/themes/moj/theme.php) [function.include]: failed to open stream: No such file or directory
Error type/ Nr.: Warning - 2
File: D:\WampServer2\www\strona\manager\includes\document.parser.class.inc.php(770) : eval()'d code
Line: 212

Parser timing
MySQL: 0.0128 s (0 Requests)
PHP: 0.0911 s
Total: 0.1039 s



Chodzi o to że to miejsce pogrubione jest źle interpretowane. Powinno między strona a assets być slash, a tak nie jest.

Podaję kilka linijek kodu
Kod
// config

$snippetsPath = "snippets/kalender";

$site_url = $modx->config["site_url"];
$slash = substr($site_url, (strlen($site_url)-1), 1);
if($slash=="/") $site_url = substr($site_url, 0, (strlen($site_url)-1));

$base_path = $modx->config["base_path"];
$slash = substr($base_path, (strlen($base_path)-1), 1);
if($slash=="/") $base_path = substr($base_path, 0, (strlen($base_path)-1));

$assets_path = $modx->config['rb_base_url'];

$pathPrefix = $site_url.$assets_path.$snippetsPath;
$themePath = $pathPrefix."/themes/".$theme."/";
$includePath = $base_path.$assets_path.$snippetsPath."/themes/".$theme."/";

$cssTheme = $themePath."theme.css";


Ma ktoś pomysł co poprawić aby mi wstawiło slasha pomiędzy strona a assets? Bo próbowałem i nic jak na razie moje wysiłki nie dają rezultatów

Proszę o pomoc.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 25.07.2025 - 01:06