![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 37 Pomógł: 0 Dołączył: 18.02.2008 Ostrzeżenie: (0%) ![]() ![]() |
Witam , robie stronke na lokalnym serverze czyli u mnie nakompie "krasnal" wszystko sie wyswietla ale gdy dam na server zdalny (bez ograniczen) , zawartosc plikow html nie wyswietla sie po kliknieciu na link gdy w pliku tpl dodam recznie { include file="../katalog/jakisplik.html " } wszystko sie wyswietla
oto kilkakodow Cytat index.tpl <a href=index.php?show=registre > register </a> <a href=index.php?show=search > Search </a> td width="800" height="100%" bgcolor="#1D1D1D" bordercolor="#FF0000" valign="top"> {include file="$file" } </td> index.php Cytat require('Smarty/Smarty.class.php'); $smarty = new Smarty(); $smarty->template_dir = 'desings'; $smarty->compile_dir = 'desings/templates_c'; $smarty->cache_dir = 'desings/cache'; $smarty->config_dir = 'desings/config'; if ($show==home) { $smarty->assign('file','../html/home.html'); } else if ($show==search && $action==result) { include('./search.php'); $smarty->assign('file','../html/result.php'); } else if ($show=="search"){ $smarty->assign('file','../html/search.html'); } else czy ktos mozemi poradzic czemu sie tak dzieje ze u mnie na kompie wszystko sie wyswietla a naserverze zdalnym juz nie Dodalem debug.tpl , i wyszlo na to ze zmienna $file sie nie zmienia , jakies sugestie ? Zauwazylem takze gdy usune pliki z teample_c , one sie nie pojawiaja w folderze spowrotem na zdalnych serverach , u mnie na serverze sie pojawiaja , takze mysle ze to cos jest bardziej z konfiguracja servera |
|
|
![]() ![]() |
![]() |
Aktualny czas: 20.08.2025 - 04:04 |