Class conventions

I find myself extending Yii classes (like CUrlManager) or writing classes of my own for things. Is there a naming convention in Yii for classes? Also, are there some docs as to where these classes should go? I’m new to Yii and have been throwing everything into the ‘components’ folder.