[eluser]zeratool[/eluser]
Hello people,
I wonder why i got this error
"faultCode1faultStringFatal error:Call to a member function find() on a non-object in /home/httpd/webapps/myapp/controllers/index.php on line 16"
just followed the instructions but still no luck
from a controller file:
$this->ad =& $this->load->model('ad');
$this->ad->find(1);
-------
from a model:
class Ad extends ActiveRecord {
function __construct()
{
parent::ActiveRecord();
$this->_class_name = strtolower(get_class($this));
$this->_table = $this->_class_name . 's';
$this->_columns = $this->discover_table_columns();
}
}
pls somebody help me, thanks