• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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