Welcome Guest, Not a member yet? Register   Sign In
Loading Models
#4

[eluser]rob897[/eluser]
So lets say I have this:

Code:
class Account extends Controller {

    function Account()
    {
        parent::Controller();
        $this->load->model('account_model');
        $this->load->model('hosting_model');
        $this->load->model('dbs_model');
    }
}
Can I assume that all the functions within the other models loaded are available throughout this entire controller?

So I should be able to call any of the dbs_model function from within this controller.

I think my problem is that I am trying to call dbs_model->Backup() within the account_model itself. I think I get it but just want to make sure.

-rob


Messages In This Thread
Loading Models - by El Forum - 10-24-2008, 12:48 PM
Loading Models - by El Forum - 10-27-2008, 08:27 AM
Loading Models - by El Forum - 10-27-2008, 08:43 AM
Loading Models - by El Forum - 10-27-2008, 09:11 AM
Loading Models - by El Forum - 10-27-2008, 09:21 AM
Loading Models - by El Forum - 10-27-2008, 09:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB