leo
|
I'm having some problems with the current implementation - Here is what I'm trying to do:
$structure = array(
array(
'tpl' => 'text',
'data' => array( /* ... */)
),
array(
'tpl' => 'thumbnails',
'data' => array( /* ... */)
)
);
$tpl->assign('structure', $structure);
So far, so good... So I'm trying to build a sort of "dynamic" template which loads other templates and fills them with my data. This is what I've done so far:
{loop="$structure"}
{include="$value.tpl"}
{/loop}
Which results in an error, because of this rendered PHP:
... $tpl->draw( "$value1["tpl"]" ); ...
Is there any simple solution, instead of "just do it outside the template in plain PHP, duh!" ?
|