Welcome Guest, Not a member yet? Register   Sign In
loading a model from within a custom library or helper file
#2

[eluser]gtech[/eluser]
I suppose you could do it by getting the CI instance
Code:
$CI =& get_instance();
  $CI->load->model('whatever');
but not sure if its a good idea because libraries are supposed to reusable, and I personally don't think its 'normal' that they should be reliant on models or helpers being in place... however if it works for you.


Messages In This Thread
loading a model from within a custom library or helper file - by El Forum - 12-15-2007, 10:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB