Например есть файл container.tpl
<div class="container">
</div>
Еще есть файл test.tpl
<div class="test">
</div>
А так же есть main.tpl
<!DOCTYPE html>
<html>
<body>
{include 'container.tpl'}
//Как ставить в container test.tpl?
</body>
</html>
Чтобы получилось так
<!DOCTYPE html>
<html>
<body>
<div class="container">
<div class="test">
</div>
</div>
</body>
</html>
Как вариант
container.tpl
<div class="container">
{if $smarty.capture.content ne ''}
{$smarty.capture.content}
{/if}
</div>
main.tpl
<!DOCTYPE html>
<html>
<body>
{capture name=content}
{include file='test.tpl'}
{/capture}
{include 'container.tpl'}
</body>
</html>
Оборудование для ресторана: новинки профессиональной кухонной техники
Частный дом престарелых в Киеве: комфорт, забота и профессиональный уход
При попытке сделать GET запрос к VKcom для поиска определенной композиции