Welcome Guest, Not a member yet? Register   Sign In
MY_Controller and resources
#2

[eluser]n0xie[/eluser]
Yes. In your construct of the extended class, specify it should load the parent construct.
Code:
class MY_Controller extends Controller{

  function MY_Controller()
  {
    parent::Controller();
    $this->load->library(...);
    $this->load->helper(...);
  }
}

Code:
class Example extends MY_Controller{

  function Example()
  {
    parent::MY_Controller();
  }
}


Messages In This Thread
MY_Controller and resources - by El Forum - 06-13-2009, 07:05 PM
MY_Controller and resources - by El Forum - 06-13-2009, 07:10 PM
MY_Controller and resources - by El Forum - 06-13-2009, 07:15 PM
MY_Controller and resources - by El Forum - 06-13-2009, 07:22 PM
MY_Controller and resources - by El Forum - 06-13-2009, 07:24 PM
MY_Controller and resources - by El Forum - 06-13-2009, 07:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB