3

When I try to call one of my model methods, I am getting this error:

Fatal error: Call to undefined method CI_DB_mysql_driver::findVenueInfo()

The method called is from my controller:

function searchVenue()
{
    $this->load->model('venues');
    //get venue info
    $data['info'] = $this->db->findVenueInfo($this->uri->segment(3)); //this line generates the error
}

and the findVenueInfo() method is in the model (venues.php).

1
  • FIXED - i knew it was something stupid :) the controller was using $this->db->findVenueInfo instead of $this->venue->findVenueInfo. Commented Apr 2, 2010 at 15:38

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.