![]() |
![]() ![]() |
![]() |
![]()
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 |
|
|
![]()
Post
#2
|
|
![]() Grupa: Moderatorzy Postów: 4 465 Pomógł: 137 Dołączył: 26.03.2004 Skąd: Gorzów Wlkp. ![]() |
Dodaj bbcode do listingu
Może wyjaśnisz, co to jest? Absolutnie nie rozumiem ideii i dlaczego w tym dziale to umieszczasz? -------------------- To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness; chaotic, confused, vulnerability, to inform yourself. Think for yourself. Question authority. |
|
|
![]()
Post
#3
|
|
![]() Grupa: Zarejestrowani Postów: 64 Pomógł: 2 Dołączył: 13.07.2007 Skąd: Poznań Ostrzeżenie: (0%) ![]() ![]() |
Jemu chyba chodzi o te if'y i includowanie przez nie.
|
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 24.07.2025 - 17:03 |