dimnast
Guest
Обработка выводов шаблонов (if в Smarty)
Код файла index.php
---
$smarty = new Smarty;
$smarty->assign("shablon", "1");
$smarty->display('index.tpl');
---
Я указываю, что выводим шаблон 1
Обработка в index.tpl
---
{if $shablon eq "1"}
{include file="forma.tpl"}
{/if}
----
В index.tpl ничего не выводит...
В чем может быть проблема?
Код файла index.php
---
$smarty = new Smarty;
$smarty->assign("shablon", "1");
$smarty->display('index.tpl');
---
Я указываю, что выводим шаблон 1
Обработка в index.tpl
---
{if $shablon eq "1"}
{include file="forma.tpl"}
{/if}
----
В index.tpl ничего не выводит...
В чем может быть проблема?