I have created a module in my YII stack , I am not sure how to configure the main.php file in my stack to get the module running
I have created a module in my YII stack , I am not sure how to configure the main.php file in my stack to get the module running
I got it solved , I can get it enabled by adding the module name in main.php , in the following manner
suppose I have a module named User
‘modules’=>array(
// uncomment the following to enable the Gii tool
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'admin',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
'User'
Now we can access the actions in the module with module/controller/action such as
myapp/index.php?r=User/default/index