Upgrade Model CI3 to CI4 |
The $db property contains the connection to the database.
To work with Query Builder you need to get an instance of it. PHP Code: $builder = $this->db->table('table'); The result() method no longer exists. Use getResult(). Also orWhere, orderBy, groupStart, etc https://codeigniter.com/user_guide/database/index.html |
Messages In This Thread |
Upgrade Model CI3 to CI4 - by cloude - 02-14-2021, 04:39 AM
RE: Upgrade Model CI3 to CI4 - by iRedds - 02-14-2021, 09:32 AM
RE: Upgrade Model CI3 to CI4 - by wdeda - 02-14-2021, 09:43 AM
RE: Upgrade Model CI3 to CI4 - by Chivinsdev - 02-16-2021, 01:55 AM
|