Re: [htmltmpl] LOOPING error [code included]
Brought to you by:
samtregar
From: Benjamin W. <war...@sb...> - 2006-12-06 03:18:17
|
On Dec 5, 2006, at 9:44 AM, Michael Peters wrote: > Setting die_on_bad_params to false will let you get around this > problem, but that causes > problems if you wanted strict templates in the first place. You can also get around the problem without disabling variable-name checking for the rest of the template, albeit in a remarkably hackish way: just add the appropriate version of <TMPL_IF NAME="my_missing_var"></TMPL_IF> on the inside of the loop that doesn't actually make use of the variable, and it will show up as a valid variable for both loops. --Ben Warfield |