4
Quote:
Venezia wrote:
But if we shouldn't use _tpl_vars, what is the correct way to access values that have been stored in $xoopsTpl? (from a php file, not from an html template).
I'm more interested in the values passed by the current module to $xoopsTpl rather than the values stored by the xoopsModule object.
Good question. I'm not (yet
) Smarty-savvy enough to answer that, but I'd say:
* if you reference them from a script invoked from your Smarty template, you probably can just reference them (or check the Smarty site)
* if you have filled data into the template in one script and want to retrieve in from another script, your design has a serious flaw. The xoopsTpl is a variable-container for inter-script data transfer.
(furthermore, the variables in the xoopsTpl don't come only from 'the current module', but from all module-blocks, ...)