Component accessible through the whole application

Is there anyway to create my own component and make it accessible through the whole application.

Without the need to make manual instance of the class?

Is it possible to access its parameters and methods like this way Yii::app()->MyComponent->method()

Thanks :)

yes it is

http://www.yiiframework.com/doc/api/1.1/CApplicationComponent

Thank you but posting a link is not an answer!

There is no tutorial on how to do that.

yet another link, hope that helps

http://blog.mbischof.de/swiftmailer-as-a-capplicationcomponent

Found solution here http://www.yiiframework.com/doc/guide/1.1/en/extension.use

:)