October 26, 2010Categories PHP YiiCorrect way to access components in your modulesYou can also configure modules’ components in the main config file 'modules'=>array( 'my'=>array( 'components'=>array( 'foo'=>array( 'class'=>'FooComponent', 'a'=>'hello', ), ), ), ),