Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [smarty] {include file="$JakWstawicZmienna/header.tpl}
[fisher]
post
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
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
enceladus
post
Post #2





Grupa: Zarejestrowani
Postów: 127
Pomógł: 0
Dołączył: 19.11.2003
Skąd: Poznań

Ostrzeżenie: (0%)
-----


Cytat
"]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


U mnie działa coś takiego
Kod
{include file=$centerTpl}

wniosek z tego że smarty chyba źle interpretuje string w " - moze zadziala
Kod
{include file=$smarty.session.theme"header.tpl"}
- strzelam bo nie mogę akurat sprawdzić.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 11.10.2025 - 19:27