1
chippyash
Strange bug in template - not working all of a sudden.
  • 2005/7/18 22:23

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


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:

<!-- Column names -->
<tr>
<{section name=i loop=$lang_tble1nm}>
<th><{$lang_tble1nm[i]}></th>
<{/section}>
<th align='center'>&nbsp;</th>
</tr>

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

Login

Who's Online

161 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 161


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits