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>
<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
$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