Welcome Guest, Not a member yet? Register   Sign In
How to use models inside a custom helper class?
#1

[eluser]Rey Philip Regis[/eluser]
Hi guys need your help, how can I use a model in my custom helper class?

Good day.
#2

[eluser]OES[/eluser]
Inside your function use.

Code:
$CI =& get_instance();
  $CI->load->model('your_model');

// Then call it by.

  $CI->your_model->function_name();

Good luck
#3

[eluser]Rey Philip Regis[/eluser]
Hi thanks for the reply it worked....




Theme © iAndrew 2016 - Forum software by © MyBB