Changing default module path

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

Quote

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:

http://localhost/ind…hp?r=cpdex/list

this is is located out of the module dir

/protected/modules/

/mod/cpdex

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

I try in the main.php

return array(


	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',


	'name'=>'My Web Application',


	'setModulePath'=>'/home/devmsd/public_html/top25/sist/mod/',




CException


Description


Property "CWebApplication.setModulePath" is not defined.





Source File


/home/devmsd/public_html/framework/base/CModule.php(404)





00392:         }


00393:     }


00394: 


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!