228482
I'm trying to get a better understanding of templates. Looking at the template xoopsmembers_searchresults.html in the xoopsmembers module, I see the "$users" array being used in a loop:
<{section name=i loop=$users}>
I can't see how $users[] are passed to the template because there are no references to a xoopsTpl->assign('user') in the index.php code. I understand the other smarty template variables in the file but not the "$users" array. Could someone please give me an explanation of this mechanism? Please be verbose, I'm new at this.
[Edit]
Now I'm totally confused. I removed the xoopsmembers_searchresults.html, uninstalled the module, reinstalled the module and everything still works. How can this be? The messages during the install even say the template was compiled and reinserted properly. The template is gone! I guess I have a very basic misunderstanding about how templates work...
Thanks a bunch
Doug P