avenirer / CodeIgniter-MY_Model

Base model (MY_Model) for the Codeigniter framework.
324 stars 203 forks source link

How to use custom where condition? #258

Closed Noushid closed 7 years ago

Noushid commented 7 years ago

How to get data like this $this->db->where('companyIS NULL')->get('users')->result(); i have already try this method $this->user->where('companyIS NULL')->get_all(); But result is false.

lloricode commented 7 years ago

did you extend your user model to MY_MODEL?

avenirer commented 7 years ago

the get() method only accepts the Id of row as optional parameter.