Welcome Guest, Not a member yet? Register   Sign In
Get config item in model
#7

A few thoughts:

1. Make sure that ENC_Model extends CI_Model, so that it will reference the global controller instance when you try to access something you don't have.
2. Or change that line to get_instance()->config->item('TableSections');
3. Or pass that config setting into the model from the controller or library that calls it.
Reply


Messages In This Thread
Get config item in model - by vertisan - 02-25-2016, 04:33 PM
RE: Get config item in model - by solidcodes - 02-25-2016, 06:41 PM
RE: Get config item in model - by pdthinh - 02-25-2016, 06:48 PM
RE: Get config item in model - by Diederik - 02-25-2016, 10:23 PM
RE: Get config item in model - by vertisan - 02-26-2016, 12:18 AM
RE: Get config item in model - by salain - 02-26-2016, 12:38 AM
RE: Get config item in model - by kilishan - 02-26-2016, 12:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB