I have integrated the Jamie Rumbelow My Model for doing active record queries with codeigniter from github – https://github.com/jamierumbelow/codeigniter-base-model
I’d like to use the normal codeigniter syntax for doing a where with multiple parameters but not sure how to use the standard codeigniter syntax as follows :
$this->db->where('active', 1);
$this->db->where('type', 'news');
Can anyone suggest how this is done using this MY_Model?
For instance… this works but only allows for one column & its value – how would I do this with multiple columns & values
$this->news_model->get_many_by('active', 1);
Sorted it – for anyone else having the same problem – you need to pass an array.