Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Как пе&

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Russian
View previous topic :: View next topic  
Author Message
jagajaga
Smarty n00b


Joined: 24 Nov 2004
Posts: 1

PostPosted: Wed Nov 24, 2004 1:56 pm    Post subject: Как пе& Reply with quote

шаблона index.tpl . т.е фрейм в шаблоне, а в фрейме еще один шаблон shop.tpl Они оба компилятся но во фрейме выводится текстом "{include file="$main_content_template"}" а мне не надо текстом я хочу чтоб во фрейме отображался шаблон !

index.php:
Code:

........
$smarty->display($lang_list[$_SESSION["current_language"]]->template_path."index.tpl");
$smarty->display($lang_list[$_SESSION["current_language"]]->template_path."shop.tpl");


index.tpl:
Code:

........
<iframe src= "/shop/templates/tmpl1/shop.tpl" width="481" height="467"  FRAMESPACING = "0" marginwidth="0" marginheight="0" scrolling=$Scroll frameborder="0"  noresize>
........


shop.tpl
Code:

........
{include file="$main_content_template"}   
........

В смарти не бумбум такчто извините
Back to top
View user's profile Send private message
smart_use
Smarty n00b


Joined: 30 Nov 2004
Posts: 2

PostPosted: Tue Nov 30, 2004 4:47 pm    Post subject: Re: &#1050;&#1072;&#1082; &#1087;&#1077; Reply with quote

jagajaga wrote:
шаблона index.tpl . т.е фрейм в шаблоне, а в фрейме еще один шаблон shop.tpl Они оба компилятся но во фрейме выводится текстом "{include file="$main_content_template"}" а мне не надо текстом я хочу чтоб во фрейме отображался шаблон !

index.php:
Code:

........
$smarty->display($lang_list[$_SESSION["current_language"]]->template_path."index.tpl");
$smarty->display($lang_list[$_SESSION["current_language"]]->template_path."shop.tpl");


index.tpl:
Code:

........
<iframe src= "/shop/templates/tmpl1/shop.tpl" width="481" height="467"  FRAMESPACING = "0" marginwidth="0" marginheight="0" scrolling=$Scroll frameborder="0"  noresize>
........


shop.tpl
Code:

........
{include file="$main_content_template"}   
........

В смарти не бумбум такчто извините


Не советую использовать фреймы.
Back to top
View user's profile Send private message
mE.DiKod
Smarty n00b


Joined: 05 Apr 2005
Posts: 1
Location: Ташкент, Узбекистан

PostPosted: Tue Apr 05, 2005 2:21 pm    Post subject: Reply with quote

Возможно ты уже решил проблему... Anyways, дело в том что "shop.tpl" не пропускается через смарти, а просто айфрэйм в браузоре запрашивает эту страницу на прямую и сервер отправляет её без интерпретации.

Возможное решение, запрашивать пхп файл в айфрейме, а в пхп файле уже инклудить "shop.tpl" через смарти..
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP