View Single Post
  #3  
Old 05-05-2014, 07:31 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 22,320
IntoRain is on a distinguished road
Default

In the same row or in the same cell?

Cells is a linked list of TCells that form a row. Each TCell is a single cell in that row.

To put them in the same row but different cells, you need to create a TCell for each thing you want to add, like

$cells->add(new TCell($STATS));
$cells->add(new TCell($FEEDEAR));
etc... (you have four columns it seems from the header, so you can only add four Tcells)

To put them in the same cell, I believe there is no other way other than putting it all inside a Comment and then the comment inside the TCell, like

$comment = new Comment("{$variableHere} blablabla <img src='link.png'> blablabla");//comments can have html
$cells->add(new TCell($comment));
__________________


asp.net stole my soul.

Last edited by IntoRain; 05-13-2014 at 02:12 PM.
Reply With Quote