1
I'm trying to port over some of my smarty-enabled apps to XOOPS but my template structure might not be compatible with the current version of smarty.
ex:
templates/
-header.tpl
-footer.tpl
-/info/leader.tpl
-/info/local.tpl
since i used subdirectories to help organize the template layout, will this produce errors?
$modversion['templates'][1]['file'] = 'info/leader.tpl';
$modversion['templates'][1]['description'] = '';
$modversion['templates'][2]['file'] = 'info/local.tpl';
$modversion['templates'][2]['description'] = '';
thanks
[edit]
after looking more into the code, i dont think this should be a problem as i can just include the mainfile the same way i declared the templates ('info/local.tpl')
what's the resoning behind initalizing the templates in modversion if our .php files will be calling the files?
[edit2]
guessing: Does it has to do with caching (init templates in $modversion). i started poking around xoops_tplfile
[edit3]
and a very important reason to add it to the database
<{include file="db:system_comments_thread.html"}>