CodeIgniter Forums

Full Version: the table library question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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'];

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

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