CodeIgniter Forums
the table library question - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: the table library question (/thread-10437.html)



the table library question - El Forum - 07-31-2008

[eluser]belbek[/eluser]
why this code from generate method of the Table library draws single <td></td> in a row although there is no </tr> in the foreach loop?

foreach($row as $cell)
{
$out .= $this->template['cell_'.$name.'start'];
$out.=$cell_number;

if ($cell === "")
{
$out .= $this->empty_cells;
}
else
{
$out .= $cell;
}

$out .= $this->template['cell_'.$name.'end'];
$cell_number++;

//exit($out);
}