Welcome Guest, Not a member yet? Register   Sign In
ActiveRecord for CodeIgniter: Rails-style model interactions
#72

[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


Messages In This Thread
ActiveRecord for CodeIgniter: Rails-style model interactions - by El Forum - 12-27-2007, 09:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB