Global methods

Is there a place where I can put methods which are accessible to all models and controllers?

It is possible, if you excend WebApplication, but that wouldn’t be right way.

Another way is to create new component, named for example MyHelper, import it in config file, and it should be available everywhere using Yii->app()->myHelper->myMethod for example.

Here is a tutorial: