[eluser]CodeIgniteMe[/eluser]
I recommend autoloading the database class in the config file, so you won't keep in mind to always load the database on every controller or model. Also, using this:
Code:
function test1 ()
{
$CI = & get_instance ();
$q = $CI->db->get('article_content');
return$q->num_rows();
}
is dangerous because you are calling the CI superobject by reference.