Обработка выводов шаблонов (if в Smarty)

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 ничего не выводит...
В чем может быть проблема?
 

dimnast

Guest
alexhemp

Работает!! А как быть с include file="forma.tpl"?
 
Сверху