I have a udt, lets call it "myudt"
Code: Select all
.......
.......
echo "<pre>Dump1";
var_dump($foo);
echo "</pre>";
$smarty->assignGlobal('foo', $foo);
Code: Select all
{myudt}
<pre>Dump2
{$foo|@var_dump}
</pre>
<pre>Dump3
{get_template_vars}
</pre>
- At Dump1 complete and as expected
- At Dump2 it is null
- At Dump3 it shows up as a variable available with all data complete and correct !! (at least to the smarty command {get_template_vars}
(ps. working on a module for use in the CMSMS2x world but the inspiration comes from defunct CMSMS1x module - so I'm guessing now - something different with parsing module templates through Smarty between v1 and v2 ?) - I'll have another read of the module writing tutorial