Organizational Research By

Surprising Reserch Topic

my model by jamie rumbelow how to use where with the model


my model by jamie rumbelow how to use where with the model  using -'codeigniter,activerecord,model'

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);

    

asked Sep 15, 2015 by Kla87T
0 votes
8 views



Related Hot Questions

2 Answers

0 votes
NULL
answered Sep 15, 2015 by ValUOD
0 votes
NULL
answered Sep 15, 2015 by AlexTroutman

...