Welcome Guest, Not a member yet? Register   Sign In
HMVC problem...CI spits out undefined property when loading database.
#1

[eluser]Jamongkad[/eluser]
Hi all!

My problem stems when I extend the Controller class.

//MX_Controller.php before HMVC it was MY_Controller.php

abstract class TemplateController extends Controller {
//...
}

My controllers seem to work well with the current setup. Even right down to the my module controllers. The problem starts when I try to access the DB, CI complains that $db is an undefined property. And that's when I invoke $this->load->database()! Strangely when I revert back to using Controller it works fine. I feel like this is a simple problem to lick but for the moment I'm stumped...


Messages In This Thread
HMVC problem...CI spits out undefined property when loading database. - by El Forum - 12-16-2009, 01:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB