[eluser]php_princess[/eluser]
How's this? I'm not printing from the controller anymore.
home controller
Code:
if (!$logged_in)
{
$this->load->library('table');
$items= array(
array('Name', 'Color', 'Size'),
array('Fred', 'Blue', 'Small'),
array('Mary', 'Red', 'Large'),
array('John', 'Purple', 'Medium'),
);
$data['table'] = $this->table->generate($items);
$this->load->view('home/dynamic', $data);
}
home/dynamic.php
Code:
<?php print $table; ?>