Welcome Guest, Not a member yet? Register   Sign In
db not appearing in module.
#4

If you use the autoload config to connect to the database ($autoload['libraries'] = array('database')).
Then just define the db property

$this->db = $CI->db;

Else add initialization

$CI->load->model('MyModel')->library('session')->database();
Reply


Messages In This Thread
db not appearing in module. - by richb201 - 01-19-2021, 02:36 PM
RE: db not appearing in module. - by InsiteFX - 01-20-2021, 04:03 AM
RE: db not appearing in module. - by richb201 - 01-20-2021, 06:01 AM
RE: db not appearing in module. - by iRedds - 01-21-2021, 11:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB