Welcome Guest, Not a member yet? Register   Sign In
Calling Multiple Models in one Controller
#3

[eluser]amalik[/eluser]
Thanks a lot for your reply. The error is associated with including multiple modules. If I use any one of the module every thing is fine when I include more then one module it gives me errors. I am including them like
Code:
function __construct(){
  parent::__construct();
  
  $this->load->model("user_model");
  $this->load->model("albums_model");
}

and the error is some thing like this

Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Albums::$albums_model

Filename: controllers/albums.php

Line Number: 33

line no 33 is

Code:
$user_albums =  $this->albums_model->select_albums_by_uid($uid);

I hope it is clear now

Thanks in advance


Messages In This Thread
Calling Multiple Models in one Controller - by El Forum - 03-24-2012, 11:28 AM
Calling Multiple Models in one Controller - by El Forum - 03-24-2012, 11:39 AM
Calling Multiple Models in one Controller - by El Forum - 03-24-2012, 11:48 AM
Calling Multiple Models in one Controller - by El Forum - 03-24-2012, 12:34 PM
Calling Multiple Models in one Controller - by El Forum - 03-24-2012, 01:08 PM
Calling Multiple Models in one Controller - by El Forum - 03-24-2012, 01:20 PM
Calling Multiple Models in one Controller - by El Forum - 03-24-2012, 01:38 PM
Calling Multiple Models in one Controller - by El Forum - 03-24-2012, 02:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB