Welcome Guest, Not a member yet? Register   Sign In
"$this->request->getVar" in a model with CI4

(This post was last modified: 01-24-2021, 02:55 AM by divebase.)

I have tried to use
"$this->request->getVar" in a model.
I didn't succeed.
It only worked when I moved the construct into a controller.
Why? What's my mistake?

Then I tried "$this->db->update($id, $data);" to use in a model.
Error message:
Call to undefined method CodeIgniter \ Database \ MySQLi \ Connection :: update ()
How do I introduce the method to the model?

With best regards

Messages In This Thread
"$this->request->getVar" in a model with CI4 - by divebase - 01-23-2021, 01:01 PM

Theme © iAndrew 2016 - Forum software by © MyBB