How do I get the records count of a table with fuel_model?

edited August 2012 in News & Announcements
I need to do this:
$this->ads_model->record_count(array('cat_id'=>$catId, 'sub_cat_id'=>$subCatId));
with fuel_model.

Is it possible? If so, how?

Comments

  • edited 11:22PM
    No. You'll need to use:
    $CI->load->model('ads_model'); $CI>ads_model->record_count(array('cat_id'=>$catId, 'sub_cat_id'=>$subCatId));
    fuel_model is a convenience wrapper function around the model.
  • edited 11:22PM
    Thank you, that's what I did, just wanted to check if it's the only way.
Sign In or Register to comment.