foreach ($files as $file) {
$filePath = $uploads . $target_dir;
- Yii::warning('UPLOADS = ' . Yii::getAlias('@uploads'));
- Yii::warning('filePath = ' . $filePath);
if (!is_dir($filePath)) {
mkdir($filePath, 0777, true);
}
}
}
Yii::$app->session->setFlash('success', 'Файлы успешно загружены.');
- return $this->render('upload.php', [
- 'guid' => $guid,
- ]);
+ return $this->render('upload.php', ['guid' => $guid]);
}
- Yii::warning('Путь к вью: ' . dirname(__DIR__, 2) . '/views/marketplace/upload.php');
+
return $this->render('upload.php', [
'guid' => $guid,
]);