![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 37 Pomógł: 0 Dołączył: 18.02.2008 Ostrzeżenie: (0%) ![]() ![]() |
Jak narazie pewnie prymitywne ale coz mozna osiagnac po takim czasie spedzonym ze smarty
index.php <? require('/usr/Smarty/Smarty.class.php'); $smarty = new Smarty(); $smarty->template_dir = '/usr/krasnal/www/nowy/desings'; $smarty->compile_dir = '/usr/krasnal/www/nowy/desings/templates_c'; $smarty->cache_dir = '/usr/krasnal/www/nowy/desings/cache'; $smarty->config_dir = '/usr/krasnal/www/nowy/desings/config'; if ($show==home) { $smarty->assign('file','../html/home.html'); } else if ($show=="wysz"){ $smarty->assign('file','../html/wysz.html'); } else if ($show==registre) { $smarty->assign('file','../html/registre.html'); # include('./registre.html'); } else if ($show==login) { $smarty->assign('file','../html/login.html'); } else if ($show==contactus) { $smarty->assign('file','../html/contactus.html'); } else if ($show=="") { $smarty->assign('file','../html/home.html'); } $smarty->display('index.tpl'); ?> index.tpl {include file="$file"} tylko to istotne include odnosi sie do okna glownego gdzi ebeda wyswietlane poszczegolne podstrony reszta w indext.pl to tabele i reszta grafiki |
|
|
![]() ![]() |
![]() |
Aktualny czas: 21.08.2025 - 13:09 |