Yii Framework Forum: Installing Module - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Installing Module How to install(Configure) a module

#1 User is offline   Basant gaur 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 20-February 14

Posted 20 February 2014 - 07:29 AM

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
0

#2 User is offline   Basant gaur 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 20-February 14

Posted 20 February 2014 - 07:38 AM

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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users