/** * 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); } }
public function init() { parent::init(); }