I have a class of static functions (common utility functions) that I wish to load into codeigniter. Currently I am loading it normally using an `include_once(...)` and it works as expected.

However, I want to load it using codeigniter's methodology. I understand that I should save my class file into the third\_party directory; and that I should create a library class (saving it in the library directory) which requires my class. 

Below are the three components, but it does not work.

**1** 

```
// my class, saved at: APPPATH.'third_party/My_Class.php'
class My_Class  
  {
    public static function my_static_utility_method (  )
      {
        return "booger" ;
      }

    // ...
  }

```

**2 -** *I understand that I am supposed to create a wrapper that obeys the CI rules of 'library' instantiation:*

```
// saved at: APPPATH.'libraries/Library_Wrapper.php'
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Library_Wrapper 
  {
    public function __construct()
      {
        require_once APPPATH.'third_party/My_Class.php';
      }
  }

```

**3 -** *Now I want to access the static methods of My\_Class from my controller:*

```
// saved at: APPPATH.'controllers/my_controller.php'
class My_Controller extends CI_Controller
  { 

    public function __constructor( )
      {
        parent::__construct();
        $this->load->library( 'Library_Wrapper' ) ; 
      }

    public function some_function()
      {
        echo $this->My_Class->my_static_utility_method( ) ;
      }

  }

```