In a model of a module (LocationModule) I can access params like this:
$arrImageSize = Yii::app()->controller->module->arrImageSize;
how can I access the same property from SiteController.php (not in LocationModule)?
In a model of a module (LocationModule) I can access params like this:
$arrImageSize = Yii::app()->controller->module->arrImageSize;
how can I access the same property from SiteController.php (not in LocationModule)?
Yii::app()->moduleID->params['xxx']
However, this usage should be avoided because it betrays the original intention of using module.
Quote
However, this usage should be avoided because it betrays the original intention of using module.
Yes, but sometimes I need to access a module from another module or controller.
If I do so, I'll get an error:
CWebApplication.location is not defined.
Sorry, it should be getModule(moduleID)