Changing default module path

anyone know how to change 'set' the default module path?


Additionally, if the application uses modules, a root alias is also predefined for each module ID and refers to the base path of the corresponding module. This feature has been available since version 1.0.3.

I need send this request for the correct directory:


this is is located out of the module dir



maby Yii::setModulePath('/newmodulepath/mod')

I try in the main.php

return array(


	'name'=>'My Web Application',




Property "CWebApplication.setModulePath" is not defined.

Source File


00392:         }

00393:     }


00395:     /**

00396:      * Configures the module with the specified configuration.

00397:      * @param array the configuration array

00398:      */

00399:     public function configure($config)

00400:     {

00401:         if(is_array($config))

00402:         {

00403:             foreach($config as $key=>$value)

[color=red]00404:                 $this->$key=$value;  HERE IN RED[/color]

It's 'modulePath', not 'setModulePath'.

working thanks!