[eluser]philstan[/eluser]
I love Codeigniter...However, have wasted a couple of hours trying to find the solution to this problem.
I am getting this error on a view page:
Fatal error: Call to a member function get_user_name() on a non-object
while running this in a view file (similar code has run successfully in a controller, however design needs mandate its use here in the view):
//Search for user_name
$this->load->model('Company_info');
$get_name = $row->author;
$this->Company_info->get_user_name($get_name);
I have tried loading the model with 'company_info', but still no success. The database is loaded automatically in the config file.
Thank you in advance for your help.