[eluser]viktors[/eluser]
[quote author="toopay" date="1309533104"]@viktors, what happen if you do this
Code:
<?php
class Test extends CI_Model {
function __get($key)
{
$CI =& get_instance();
return $CI->$key;
}
function test1()
{
$q=$this->db->get('article_content');
return $q->num_rows();
}
}
[/quote]
Fatal error: Call to a member function get() on a non-object in model/test.php
I had to change yesterday character set the entire project, may this was the cause