Welcome Guest, Not a member yet? Register   Sign In
How to use a library in the MY_Loader-Class
#1

[eluser]axelf[/eluser]
Hi,

i want to use a library in the MY_Loader Class. How can i load this library into the MY_Loader-Class?

The Library is named Language and is in application/libraries/Language.php. In autoload.php i added 'language' in $autoload['libraries']-array. In the My_Loader Class i want to use $this->language, but it does not work. What i am doing wrong?

Code:
class MY_Loader extend CI_Loader {
  public function language_view() {
    $this->language->get(); // Message: Undefined property: MY_Loader::$language
  }
}


Messages In This Thread
How to use a library in the MY_Loader-Class - by El Forum - 11-23-2013, 07:43 AM
How to use a library in the MY_Loader-Class - by El Forum - 11-23-2013, 11:42 AM
How to use a library in the MY_Loader-Class - by El Forum - 11-23-2013, 12:18 PM
How to use a library in the MY_Loader-Class - by El Forum - 11-23-2013, 01:07 PM
How to use a library in the MY_Loader-Class - by El Forum - 11-23-2013, 01:11 PM
How to use a library in the MY_Loader-Class - by El Forum - 11-23-2013, 01:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB