1
I've had a particular template working just fine but then decided to put the column headings for tables being displayed into an array. And now it doesn't work. I put it back to where it used to work and still it don't work. I've been trying to debug this for a couple of weeks. Now I admit defeat and ask for help.
Code sample is:
//set up column titles for code sets
$lang_tble1nm = array(_MD_CDM_LISTCOlSET,_MD_CDM_LISTSETDESC,_MD_CDM_LISTCOLFLAG);
$xoopsTpl->assign('lang_tble1nm',$lang_tble1nm);
Template sample is:
<{section name=i loop=$lang_tble1nm}>
<{$lang_tble1nm[i]}> |
<{/section}>
|
---|
What I expect is to have table column headings but I get blanks.
I've put XOOPS into smarty debug mode and get the required data showing through:
{$lang_tble1nm} Array (3)
0 => Set
1 => Code Set Description
2 => Row Flag
but no display.
You know how it is, I've been looking at this for a long time now and it's probably wood and trees syndrome.
Any help will be much appreciated, particularly by the users of my CDM module 'cus they are waiting for the next release.
Kind Regards
Ashley