![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 151 Pomógł: 0 Dołączył: 4.03.2003 Ostrzeżenie: (0%) ![]() ![]() |
Witam, moze to proste, ale nie moge wpasc na to
mam takowy fragment pliku szablonu Kod {include file="$smarty.session.theme/header.tpl"}
$smarty.session.theme to jak wiadomo _SESSION['theme'] nie wiem jak to poprawnie wstawic moja propozycja powoduje ze, smarty wywala takowym bledem Cytat Fatal error: syntax error: $smarty. is an unknown reference
bede wdzieczny za wszelakie sugestie |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 151 Pomógł: 0 Dołączył: 4.03.2003 Ostrzeżenie: (0%) ![]() ![]() |
Szkoda czasu na pierdoly ...
zrobilem tak [php:1:50188d952f]<?php $smarty->assign('HEADER', $_SESSION['Theme'] . '/header.tpl'); ?>[/php:1:50188d952f] a w tpl Kod {include file="$HEADER"}
W ogole smarty ma problem z intepretowaniem wszelakich parametrow w postaci zmiennych tablicowych w {include file="tablica"}, chyba ze to moja wina ... gdyby ktos wiedzial jak to zrobic to chetnie sie dowiem |
|
|
![]() ![]() |
![]() |
Aktualny czas: 3.10.2025 - 02:02 |