Question: This is very straightforward: I have 4 packages, and I would like to define one Error handler for all of them. I already created OnError event handler in one package and now I would like to configure other 3 packages to use the same error handling routine. 

I don't want to copy and paste.

What is the easiest way of doing it?

Answer: 
```
User::getById();

```

and 

```
User::getByUserName();

```

**Edit**: In response to your question edit, generally frameworks have an auto-loading mechanism that will find and load a class file for you once you reference that class. So when you type `User::getById()`, the PHP interpreter will see that it needs to load the User class (if it hasn't been loaded already), and run the autoloading procedure to find the correct code to include.

I've never used Kohana, but I would be quite surprised if it didn't use some form of autoloading. If it does not, then yes, a simple `include('User.php')` will be enough to make the static method calls to `User` work.
The confusing thing is Kohana's convention of writing "helper" classes with lowercase names.

Your user php file will probably all ready be loaded if your using it as a model, so you can use zombat's suggests of `User::getById();`.

I don't like to follow their naming convensions for helpers or libraries and instead do: 

```
require_once(Kohana::find_file('libraries', 'user_utils', TRUE, 'php'));

```