[htmltmpl] global_vars, TMPL_LOOPs and query()
Brought to you by:
samtregar
From: petersm <pe...@ve...> - 2004-02-25 21:41:44
|
Hello all... I'm new to this list but have been using H::T for over a year now with great success and joy. Thanks Sam. Anywho, I'm not sure if this is a bug or if I'm not not understanding how it is supposed to work. The problem I am having is that when 'global_vars' is turned on any vars that are inside of TMPL_LOOPS show up when I get the vars back from a query(). But with it turned off, any vars inside of the TMPL_LOOPS don't show up unless I specifically call a query(loop => $loopName). Is this the expected behavior? According to the docs, 'global_vars' should make vars outside of templates visible to the loops but not vice versa. I wouldn't think that a call to query should be affected whether 'global_vars' is on or off. Thanks, Michael Peters Venzia |