/** * @return $this */ protected function _createNewDir() { $newFile = new \skeeks\sx\File($this->_newRootFilePath); if (!$newFile->getDir()->make()) { throw new \ErrorException("Не удалось создать диррикторию для нового файла"); } return $this; }
echo \Yii::t('app', 'Start a new installation'); ?> </button> <?php if ($files = \skeeks\cms\helpers\FileHelper::findFiles(\Yii::$app->dbDump->backupDir)) { ?> <hr /> <h2><?php echo \Yii::t('app', 'Install from a backup file'); ?> </h2> <?php foreach ($files as $file) { ?> <?php $fileObj = new \skeeks\sx\File($file); ?> <br /> <button class="btn btn-success" onclick="sx.DbRestore.execute('<?php echo $fileObj->getBaseName(); ?> '); return false;"> <i class="glyphicon glyphicon-play"></i> <?php echo $fileObj->getBaseName(); ?> (<?php echo $fileObj->size()->formatedShortSize(); ?> ) </button>