fixit26
12-06-2005, 10:51 AM
I have just started using this module and for the most part find it really good. I just got my head round the loop function and have started using it quite alot. I wanted to try and make a kind of map from database values and i have done this in the past purly from within a script with just a simple nexted for loop. I came to try this using the TMPL_LOOP function in the hope of neatening my code and nested it so
<TMPL_LOOP Y_LOOP>
<TMPL_LOOP X_LOOP>
</TMPL_LOOP>
</TMPL_LOOP>
but it fails with the error message Attempt to set nonexistent parameter 'x_loop' - this parameter name doesn't match any declarations in the template file
The example in the Modules POD is vauge and does not give an example of how the template file should look, and the example it gives of the perl code is not well explained and makes no sense to me.
Does anyone else use this module and have they figured out how to do this? any ideas would be appreciated. thanks
<TMPL_LOOP Y_LOOP>
<TMPL_LOOP X_LOOP>
</TMPL_LOOP>
</TMPL_LOOP>
but it fails with the error message Attempt to set nonexistent parameter 'x_loop' - this parameter name doesn't match any declarations in the template file
The example in the Modules POD is vauge and does not give an example of how the template file should look, and the example it gives of the perl code is not well explained and makes no sense to me.
Does anyone else use this module and have they figured out how to do this? any ideas would be appreciated. thanks