Welcome Guest, Not a member yet? Register   Sign In
How to load a model of a different module in a controller?
#13

[eluser]yuga[/eluser]
I've succesfully implemented calling model from the module in this way:

Code:
$this->load->module('some_module');
$this->needed_model->method();

class Some_module extends Controller
{
   public function __construct()
      {
           $this->load->model('needed_model');
      }
}


Messages In This Thread
How to load a model of a different module in a controller? - by El Forum - 06-02-2009, 05:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB