CodeIgniter Database Objects
Something that I feel is useful throughout CodeIgniter is the different between array syntax such as
$data['title']
in order to later pass it into a view
$this->load->view('viewname',$data);
and object syntax for things like activerecords with the database class such as
$query = $this->db->get('tablename')->result();
and then if your table had a field of
'name'
you'd reference it like
echo $query->name;
I hope that wasn't too confusing of a description!














