modules in multiple directories

is the a way to set up modules in multiple directories? I’d like to be able to have a shared folder for system modules and then individual folders for specifc clients on a multisite cms build on yii.

you can set your modulePath in the config/main.php

the other way is to define the modules class in the modules-array of config/main.php (see how gii is configured)

Am I able to somehow tell Yii that there are modules in two separate directories (ie not nested)?

I don’t think so, but you can do the following:

Yii::setPathOfAlias('modules_sys', '/path/to/modules');

return array(

    // ...


    'modules'=>array('module1', 'module2',