3
not working ;-(
my files
./index.php
require('header.php');
$xoopsOption['template_main'] = 'create_list.html';
require(XOOPS_ROOT_PATH.'/header.php');
$test[dir1][file1]=test;
$test[dir1][file2]=test1;
$test[dir1][file3]=test3;
$test[dir2][file1]=test1;
$test[dir3][file1]=test2;
print_r($test); //test array
i see
Array ( [dir1] => Array ( [file1] => test [file2] => test1 [file3] => test3 ) [dir2] => Array ( [file1] => test1 ) [dir3] => Array ( [file1] => test2 ) )
$xoopsTpl->assign('list1',$test);
require(XOOPS_ROOT_PATH.'/footer.php');
./template/create_list.html
<{section name=i loop=$list1>
<{section name=z loop=$list1[i]}>
<{$list.i.z}>
<{/section}>
<{/section}>
how?
this simple example, but not working?