Hi, I’m trying something out in Yii. (i’m new to yii by the way) Is it possible to dynamically load a module after a user logs in to the system? As what I have understood, modules are initialize upon calling the webApp right? or i have misunderstood the concept. please shed some light. thanks
when you call a url to a controller inside the module: mymodule/controller/action
when you call
$myModule=Yii::app()->getModule('mymodule')
when you use the module id as first part in Yii::getPathOfAlias like
$pathToModuleViews = Yii::getPathOfAlias('mymodule.views');
//but this will not initialize the module
$pathToModuleViews = Yii::getPathOfAlias('application.modules.mymodule.views');