Welcome Guest, Not a member yet? Register   Sign In
table object outputting before things that were called prior
#3

[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; ?>


Messages In This Thread
table object outputting before things that were called prior - by El Forum - 08-24-2012, 10:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB