Error in embedded blocks

0 views
Skip to first unread message

Matt

unread,
Nov 18, 2009, 10:12:03 PM11/18/09
to Smarty Developers
I am getting an error where sub-blocks are being read as unclosed.

Ex:

base.tpl
{block name="main"}
main content
{/block}

extends.tpl
{extends file="base.tpl"}

{block name="main"}
{block name="sub-block"}{/block}
{/block}

at which point the error message states that there is an un-closed
block tag at "sub-block".

Matt

Uwe.Tews

unread,
Nov 21, 2009, 7:32:25 AM11/21/09
to Smarty Developers
Nesting of blocks in child templates is not supported.
Reply all
Reply to author
Forward
0 new messages