示例#1
0
 /**
  * Initializes the module.
  *
  * This method is called after the module is created and initialized with property values
  * given in configuration. The default implementation will initialize [[controllerNamespace]]
  * if it is not set.
  *
  * If you override this method, please make sure you call the parent implementation.
  * @throws InvalidParamException
  */
 public function init()
 {
     parent::init();
     if (!is_dir(Yii::getAlias($this->uploadFolder))) {
         mkdir(Yii::getAlias($this->uploadFolder), 0777, true);
     }
 }
示例#2
0
 public function init()
 {
     parent::init();
 }