Inheritance: extends skeeks\cms\models\ComponentModel
Example #1
0
 public function init()
 {
     if (!$this->name) {
         $this->name = \Yii::t('skeeks/cms', "Local storage");
     }
     if (!$this->publicBaseUrl) {
         $this->publicBaseUrl = "/uploads/all";
     }
     if (!$this->rootBasePath) {
         $this->rootBasePath = \Yii::getAlias("@frontend/web/uploads/all");
     }
     parent::init();
 }