Just follow the namespace already implemented and Yii autoloader will do the rest. For example your class is ‘MyClass’ and you want to place it in ‘abitcrazy’ folder. Check sample controller’s namespace - if it’s ‘app/controllers/xxxx’ put the ‘abitcrazy’ folder next to ‘controllers’ and use namespace ‘app/abitcrazy’