April 3, 2011Categories YiiAccessing modules method in YiiYii::app()->getModule('user')->encrypting($this->password) or Yii::app()->controller->module->encrypting($this->password)
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', ), ), ), ),