call load method from a model

Hi, I need to call the load method from a class model and I get an error.

To call a class model from a model class to do?

Do you have to do it from the model? It should really be done in the controller.

// get current user
$user = $this->user_model->get_user_data();

// get account data for current user by passing ID from previous model method.
$accounts = $this->account_model->get_user_account($user['id']);

Ok, thank you very much

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.