Closed
Description
Since 3.1.28
Smarty capture
works different and breaks existing code, again.
Also happend with Smarty::getVariable()
, which was marked as deprecated and damaged at the same time (fixed since 3.1.29
but anyways).
Example for capture
problem
layout.tpl
{block "content"}{/block}
index.tpl
{block "content"}
{include "test-plugin.tpl"}
{$smarty.capture.plugin}
{/block}
test-plugin.tpl
{capture "plugin"}
test
{/capture }
index.php
$smarty->display('extends:layout.tpl|index.tpl');
The captured content is not available in the index.tpl.
If I move the capture
tags to the index.tpl, everything works fine. So it seems to have a local scope to the current template now but no scope
parameter like the assign
tag.
Any chance to get
- BC in the future? 3.1.28 is a patch/build number
- a
scope
parameter or some advice how to accomplish thecapture
usage across multiple templates?
Metadata
Metadata
Assignees
Labels
No labels