In particular, I have an abstract class that is extended by several sub classes. Each in their own file with the name of the file being the same as the name of the class.
At the moment, the only way I have worked out to access these classes is by including the following wherever I need them.
Note that this will import the directory components/myClass/*. If you only want your classfile it’s enough to use Yii::import(‘application.components.myClass’);. But that’s probably also obsolete as you already will have Yii::import(‘application.components.*’); in your config.
Sure, you can configure custom application components. It’s best to extend these from CApplicationComponent. Then configure it like this: