|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
jagajaga Smarty n00b
Joined: 24 Nov 2004 Posts: 1
|
Posted: Wed Nov 24, 2004 1:56 pm Post subject: Как пе& |
|
|
шаблона 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 |
|
smart_use Smarty n00b
Joined: 30 Nov 2004 Posts: 2
|
Posted: Tue Nov 30, 2004 4:47 pm Post subject: Re: Как пе |
|
|
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 |
|
mE.DiKod Smarty n00b
Joined: 05 Apr 2005 Posts: 1 Location: Ташкент, Узбекистан
|
Posted: Tue Apr 05, 2005 2:21 pm Post subject: |
|
|
Возможно ты уже решил проблему... Anyways, дело в том что "shop.tpl" не пропускается через смарти, а просто айфрэйм в браузоре запрашивает эту страницу на прямую и сервер отправляет её без интерпретации.
Возможное решение, запрашивать пхп файл в айфрейме, а в пхп файле уже инклудить "shop.tpl" через смарти.. |
|
Back to top |
|
|
|
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
|