Where to put global defines

I was wondering the best place to put global stuff like defines.

I currently have one global function that I wrapped inside of class and made the function static. I placed the file in components so it would be auto loaded.

Not sure how to the defines I guess i could put them in a class as well and make them static.

Can I just place them in a file and put it in the components folder and have them automagically included?

You may refer to this: http://www.yiiframew…oc/cookbook/31/

Defining static class is also a good idea. You may put the class under components so that it can be autoloaded.

See config/main.php, parameter 'params'.

Not for constants, but good for many project params.

I’ve developed and extension, that allows storing application params in the DB: http://www.yiiframew…ension/dbparam/